[Add]confd

This commit is contained in:
2024-08-22 15:27:29 +08:00
parent 53fab76925
commit b5d3b3005e
2 changed files with 15 additions and 1 deletions

View File

@@ -3,4 +3,6 @@ services:
build: docker/etcd
ports:
- 2379:2379
- 2380:2370
- 2380:2370
confd:
build: docker/confd

12
docker/confd/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM openeuler/openeuler:24.03
RUN dnf update -y && \
dnf clean all && \
rm -rf /var/cache/dnf/*
RUN curl -fsSL https://github.com/abtreece/confd/releases/download/v0.20.0/confd-v0.20.0-linux-amd64.tar.gz | tar -xz -C /usr/local/bin && \
chmod +x /usr/local/bin/confd
RUN mkdir /etc/confd
CMD [ "confd","-watch", "-backend", "etcd", "-node", "http://etcd:2379"]