|
9 | 9 |
|
10 | 10 | , bashInteractive, cacert, cardano-cli, cardano-db-sync, cardano-db-tool
|
11 | 11 | , cardano-smash-server, coreutils, curl, findutils, getconf, glibcLocales
|
12 |
| -, gnused, gnutar, gzip, jq, iana-etc, iproute, iputils, lib, libidn, libpqxx |
13 |
| -, postgresql, socat, utillinux |
| 12 | +, gnugrep, gnused, gnutar, gzip, jq, iana-etc, iproute, iputils, lib, libidn |
| 13 | +, libpqxx, postgresql, socat, tree, utillinux |
14 | 14 | }:
|
15 | 15 |
|
16 | 16 | let
|
|
22 | 22 | ln -s ${coreutils}/bin/env $out/usr/bin/env
|
23 | 23 | '';
|
24 | 24 |
|
| 25 | + postgresql-setup-sh = runCommand "postgresql-setup.sh" {} '' |
| 26 | + mkdir -p $out/usr/bin |
| 27 | + cp "${../scripts/postgresql-setup.sh}" $out/usr/bin/postgresql-setup.sh |
| 28 | + ''; |
| 29 | + |
25 | 30 | baseImage = dockerTools.buildImage {
|
26 | 31 | name = "cardano-db-sync-base-env";
|
27 | 32 | config.Env = [ "NIX_SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt" ];
|
|
37 | 42 | findutils # GNU find
|
38 | 43 | getconf # get num cpus
|
39 | 44 | glibcLocales # Locale information for the GNU C Library
|
| 45 | + gnugrep # GNU grep |
40 | 46 | gnused # GNU sed
|
41 | 47 | gnutar # GNU tar
|
42 | 48 | gzip # Gnuzip
|
|
51 | 57 | utillinux # System utilities for Linux
|
52 | 58 | cardano-cli # tool for interacting with cardano-node
|
53 | 59 | cardano-db-tool # utilities for creating database snapshots
|
| 60 | + postgresql-setup-sh # script for creating snapshots |
| 61 | + tree # list contents of directories in a tree |
54 | 62 | ];
|
55 | 63 | };
|
56 | 64 |
|
|
0 commit comments