Skip to content

Commit

Permalink
Merge pull request #1999 from input-output-hk/rvl/docker-nsswitch
Browse files Browse the repository at this point in the history
docker: add nsswitch.conf to base layer
  • Loading branch information
KtorZ committed Aug 4, 2020
2 parents 40a8b5d + b4120a0 commit 204a59b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nix/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
############################################################################

{ runtimeShell, writeScriptBin, runCommand, dockerTools
{ runtimeShell, writeScriptBin, writeTextFile, runCommand, dockerTools

# The main contents of the image.
, exe
Expand Down Expand Up @@ -40,11 +40,18 @@ let
exec ${exe}/bin/cardano-wallet-${backend} "$@"
'';

# Config file needed for container/host resolution.
nsswitch-conf = writeTextFile {
name = "nsswitch.conf";
text = "hosts: files dns";
destination = "/etc/nsswitch.conf";
};

# Layer of tools which aren't going to change much between versions.
baseImage = dockerTools.buildImage {
name = "${repoName}-env";
contents = [
glibcLocales iana-etc cacert
glibcLocales iana-etc cacert nsswitch-conf
bashInteractive coreutils utillinux iproute iputils curl socat
];
# set up /tmp (override with TMPDIR variable)
Expand Down

0 comments on commit 204a59b

Please sign in to comment.