add /start.d for running startup time scripts
This commit is contained in:
parent
00259ff95e
commit
27d82fb5be
@ -95,7 +95,8 @@
|
||||
FROM debian:buster-slim
|
||||
ARG CONFD_VERSION={{ docker_confd_version }}
|
||||
ADD https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-amd64 /usr/local/bin/confd
|
||||
RUN printf '#!/bin/bash\n/usr/local/bin/confd -onetime -backend env\nexec ${@}' > /entrypoint.sh \
|
||||
RUN mkdir -p /start.d \
|
||||
&& printf '#!/bin/bash\nset -e\n/usr/local/bin/confd -onetime -backend env\nfind /start.d -maxdepth 1 -type f -exec cmd option {} \;\nexec ${@}\n' > /entrypoint.sh \
|
||||
&& mkdir -p /etc/confd/{conf.d,templates} \
|
||||
&& chmod +x /usr/local/bin/confd /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user