summaryrefslogtreecommitdiffhomepage
path: root/pkg/docker/Dockerfile.tmpl
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2019-10-03 15:08:44 +0300
committerKonstantin Pavlov <thresh@nginx.com>2019-10-03 15:08:44 +0300
commitc6df631bccafd528f92c2aa88b7b3ded1db93a9e (patch)
tree33fe70c48656ccd7e4c0c2fd119138e411b7e05d /pkg/docker/Dockerfile.tmpl
parent73f096f79614403b93f23e7397f312eea49b0938 (diff)
downloadunit-c6df631bccafd528f92c2aa88b7b3ded1db93a9e.tar.gz
unit-c6df631bccafd528f92c2aa88b7b3ded1db93a9e.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--pkg/docker/Dockerfile.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/docker/Dockerfile.tmpl b/pkg/docker/Dockerfile.tmpl
index 18d6d34e..c721931b 100644
--- a/pkg/docker/Dockerfile.tmpl
+++ b/pkg/docker/Dockerfile.tmpl
@@ -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"]