Revision 8d1b8335e39a9dfc5c87c04174c6810dc3e585e2 authored by Lili Cosic on 15 April 2021, 13:06:07 UTC, committed by Lili Cosic on 19 April 2021, 09:49:13 UTC
Cherry-pick of 60e44286fa3c0c0 from master branch does not work due to missing `tls.CipherSuites()` function. We work around by using go build tags for both the building and tests.
1 parent c3f447a
Dockerfile-release
FROM k8s.gcr.io/debian-base:v1.0.0
ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
RUN mkdir -p /var/etcd/
RUN mkdir -p /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)
# To fix this we just create /etc/nsswitch.conf and add the following line:
RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
EXPOSE 2379 2380
# Define default command.
CMD ["/usr/local/bin/etcd"]
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...