[Add]confd
This commit is contained in:
@@ -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
12
docker/confd/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user