Docker: added an entrypoint to make configuration easier.

Docker images now accept shell scripts, json files and certificate chain
bundles to provide configuration on a container start by placing them
into /docker-entrypoint.d/ directory.
This commit is contained in:
Konstantin Pavlov
2019-10-03 15:08:44 +03:00
parent 73f096f796
commit c6df631bcc
2 changed files with 75 additions and 0 deletions

View File

@@ -86,4 +86,8 @@ RUN ln -sf /dev/stdout /var/log/unit.log
STOPSIGNAL SIGTERM
COPY docker-entrypoint.sh /usr/local/bin/
RUN mkdir /docker-entrypoint.d/
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]