From b81cef94dc4cfbece84340722e45ad98c30176f3 Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Fri, 23 Nov 2018 13:28:54 +0000 Subject: [PATCH] Add nsswitch.conf file into the image --- scratch/amd64/Dockerfile | 1 + scratch/amd64/etc/nsswitch.conf | 20 ++++++++++++++++++++ scratch/arm/Dockerfile | 1 + scratch/arm/etc/nsswitch.conf | 20 ++++++++++++++++++++ scratch/arm64/Dockerfile | 1 + scratch/arm64/etc/nsswitch.conf | 20 ++++++++++++++++++++ scratch/tmpl.Dockerfile | 1 + 7 files changed, 64 insertions(+) create mode 100644 scratch/amd64/etc/nsswitch.conf create mode 100644 scratch/arm/etc/nsswitch.conf create mode 100644 scratch/arm64/etc/nsswitch.conf diff --git a/scratch/amd64/Dockerfile b/scratch/amd64/Dockerfile index c87db69..94ab30a 100644 --- a/scratch/amd64/Dockerfile +++ b/scratch/amd64/Dockerfile @@ -1,5 +1,6 @@ FROM scratch COPY certs/ca-certificates.crt /etc/ssl/certs/ +COPY /etc/nsswitch.conf /etc/ COPY traefik / EXPOSE 80 VOLUME ["/tmp"] diff --git a/scratch/amd64/etc/nsswitch.conf b/scratch/amd64/etc/nsswitch.conf new file mode 100644 index 0000000..1142be1 --- /dev/null +++ b/scratch/amd64/etc/nsswitch.conf @@ -0,0 +1,20 @@ +# /etc/nsswitch.conf +# +# Example configuration of GNU Name Service Switch functionality. +# If you have the `glibc-doc-reference' and `info' packages installed, try: +# `info libc "Name Service Switch"' for information about this file. + +passwd: compat +group: compat +shadow: compat +gshadow: files + +hosts: files dns +networks: files + +protocols: db files +services: db files +ethers: db files +rpc: db files + +netgroup: nis diff --git a/scratch/arm/Dockerfile b/scratch/arm/Dockerfile index c87db69..94ab30a 100644 --- a/scratch/arm/Dockerfile +++ b/scratch/arm/Dockerfile @@ -1,5 +1,6 @@ FROM scratch COPY certs/ca-certificates.crt /etc/ssl/certs/ +COPY /etc/nsswitch.conf /etc/ COPY traefik / EXPOSE 80 VOLUME ["/tmp"] diff --git a/scratch/arm/etc/nsswitch.conf b/scratch/arm/etc/nsswitch.conf new file mode 100644 index 0000000..1142be1 --- /dev/null +++ b/scratch/arm/etc/nsswitch.conf @@ -0,0 +1,20 @@ +# /etc/nsswitch.conf +# +# Example configuration of GNU Name Service Switch functionality. +# If you have the `glibc-doc-reference' and `info' packages installed, try: +# `info libc "Name Service Switch"' for information about this file. + +passwd: compat +group: compat +shadow: compat +gshadow: files + +hosts: files dns +networks: files + +protocols: db files +services: db files +ethers: db files +rpc: db files + +netgroup: nis diff --git a/scratch/arm64/Dockerfile b/scratch/arm64/Dockerfile index c87db69..94ab30a 100644 --- a/scratch/arm64/Dockerfile +++ b/scratch/arm64/Dockerfile @@ -1,5 +1,6 @@ FROM scratch COPY certs/ca-certificates.crt /etc/ssl/certs/ +COPY /etc/nsswitch.conf /etc/ COPY traefik / EXPOSE 80 VOLUME ["/tmp"] diff --git a/scratch/arm64/etc/nsswitch.conf b/scratch/arm64/etc/nsswitch.conf new file mode 100644 index 0000000..1142be1 --- /dev/null +++ b/scratch/arm64/etc/nsswitch.conf @@ -0,0 +1,20 @@ +# /etc/nsswitch.conf +# +# Example configuration of GNU Name Service Switch functionality. +# If you have the `glibc-doc-reference' and `info' packages installed, try: +# `info libc "Name Service Switch"' for information about this file. + +passwd: compat +group: compat +shadow: compat +gshadow: files + +hosts: files dns +networks: files + +protocols: db files +services: db files +ethers: db files +rpc: db files + +netgroup: nis diff --git a/scratch/tmpl.Dockerfile b/scratch/tmpl.Dockerfile index 23bfc36..66ea06f 100644 --- a/scratch/tmpl.Dockerfile +++ b/scratch/tmpl.Dockerfile @@ -1,5 +1,6 @@ FROM scratch COPY certs/ca-certificates.crt /etc/ssl/certs/ +COPY /etc/nsswitch.conf /etc/ COPY traefik / EXPOSE 80 VOLUME ["/tmp"]