diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2019-10-03 15:08:44 +0300 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2019-10-03 15:08:44 +0300 |
commit | c6df631bccafd528f92c2aa88b7b3ded1db93a9e (patch) | |
tree | 33fe70c48656ccd7e4c0c2fd119138e411b7e05d /pkg/docker/Dockerfile.tmpl | |
parent | 73f096f79614403b93f23e7397f312eea49b0938 (diff) | |
download | unit-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.tmpl | 4 |
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"] |