Skip to content

Commit

Permalink
docker: remove nsswitch.conf
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Iavael <905853+iavael@users.noreply.github.com>
  • Loading branch information
iavael and ahrtr committed Feb 2, 2023
1 parent 9505d72 commit dc2b198
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 29 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG/CHANGELOG-3.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Previous change logs can be found at [CHANGELOG-3.4](https://github.com/etcd-io/
### Dependency
- Bump bbolt to [v1.3.7](https://github.com/etcd-io/etcd/pull/15222).

### Other
- [Remove nsswitch.conf from docker image](https://github.com/etcd-io/etcd/pull/15161)

<hr>

## v3.5.7 (2023-01-20)
Expand Down
5 changes: 0 additions & 5 deletions Dockerfile-release.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ ADD etcdutl /usr/local/bin/
WORKDIR /var/etcd/
WORKDIR /var/lib/etcd/

# Alpine Linux doesn't use pam, which means that there is no /etc/nsswitch.conf,
# but Golang relies on /etc/nsswitch.conf to check the order of DNS resolving
# (see https://github.com/golang/go/commit/9dee7771f561cf6aee081c0af6658cc81fac3918)
ADD nsswitch.conf /etc/nsswitch.conf

EXPOSE 2379 2380

# Define default command.
Expand Down
22 changes: 0 additions & 22 deletions nsswitch.conf

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ mkdir -p "${IMAGEDIR}"/var/etcd
mkdir -p "${IMAGEDIR}"/var/lib/etcd
cp "${BINARYDIR}"/etcd "${BINARYDIR}"/etcdctl "${BINARYDIR}"/etcdutl "${IMAGEDIR}"

cp ./nsswitch.conf "${IMAGEDIR}"

cat ./"${DOCKERFILE}" > "${IMAGEDIR}"/Dockerfile

if [ -z "$TAG" ]; then
Expand Down

0 comments on commit dc2b198

Please sign in to comment.