Files
teleport/.github/services/Dockerfile.etcd
T
Roman TkachenkoandVictor Sokolov 3fd1cca5b2 Github Actions workflow (#18617)
Signed-off-by: Roman Tkachenko <roman@goteleport.com>
Co-authored-by: Victor Sokolov <gzigzigzeo@gmail.com>
2022-11-22 16:55:26 -05:00

21 lines
664 B
Docker

ARG BUILDARCH
ARG ETCD_VERSION
FROM bitnami/etcd:${ETCD_VERSION}
COPY examples/etcd/certs /certs
HEALTHCHECK CMD etcdctl --insecure-discovery --endpoint=https://etcd0:2379 --key-file /certs/client-key.pem --cert-file /certs/client-cert.pem --ca-file /certs/ca-cert.pem cluster-health
EXPOSE 2379 2380
ENTRYPOINT /opt/bitnami/etcd/bin/etcd --name teleportstorage \
--initial-cluster-state new \
--cert-file /certs/server-cert.pem \
--key-file /certs/server-key.pem \
--trusted-ca-file /certs/ca-cert.pem \
--advertise-client-urls=https://127.0.0.1:2379 \
--listen-client-urls=https://0.0.0.0:2379 \
--client-cert-auth \
--debug