From fcdf548977b354b72c295830db3635de4f09aa03 Mon Sep 17 00:00:00 2001 From: "Thomas P." Date: Tue, 18 Mar 2025 08:48:57 +0100 Subject: [PATCH] enh(docker): add some tools to the image This adds the following packages to the docker image, useful for debugging * `grep`: output filtering * `less`: pager used by the `psql` command (it shows error `sh: line 1: less: command not found` without it if output has more than a few lines - for example when listing tables with `\d+`) --- nix/docker.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/docker.nix b/nix/docker.nix index fe20d79a9..1ceeffd28 100644 --- a/nix/docker.nix +++ b/nix/docker.nix @@ -10,7 +10,7 @@ , bashInteractive, cacert, cardano-cli, cardano-db-sync, cardano-db-tool , cardano-smash-server, coreutils, curl, findutils, getconf, glibcLocales , gnused, gnutar, gzip, jq, iana-etc, iproute, iputils, lib, libidn, libpqxx -, postgresql_17, socat, utillinux +, postgresql_17, socat, utillinux, gnugrep, less }: let @@ -37,6 +37,7 @@ let findutils # GNU find getconf # get num cpus glibcLocales # Locale information for the GNU C Library + gnugrep # GNU grep gnused # GNU sed gnutar # GNU tar gzip # Gnuzip @@ -51,6 +52,7 @@ let utillinux # System utilities for Linux cardano-cli # tool for interacting with cardano-node cardano-db-tool # utilities for creating database snapshots + less # Output pager for the psql command in interactive mode ]; };