diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-04-02 12:21:12 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-04-02 12:21:12 +0200 |
commit | bdef91a615ddeda630b39237f50c41c5f0d4c8dc (patch) | |
tree | 4edd28e10fa04b4fa05c258498ad8ea44df02b5a /packaging/docker/catlfish-dev/Dockerfile | |
parent | 8227a8350b80e1000c7f48f249072144f76ff907 (diff) |
create supervisord_log
Diffstat (limited to 'packaging/docker/catlfish-dev/Dockerfile')
-rw-r--r-- | packaging/docker/catlfish-dev/Dockerfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packaging/docker/catlfish-dev/Dockerfile b/packaging/docker/catlfish-dev/Dockerfile index 6eff721..2792a03 100644 --- a/packaging/docker/catlfish-dev/Dockerfile +++ b/packaging/docker/catlfish-dev/Dockerfile @@ -52,12 +52,14 @@ RUN useradd --uid 147 --gid 147 catlfish # Working has to be where catlfish.config is. We want to run in # /var/run/catlfish and not in /usr/local/etc/catlfish, so symlink. -RUN mkdir -p /var/run/catlfish/erlang_log /var/run/catlfish/sasl_log -RUN chown -R catlfish /var/run/catlfish -RUN ln -s /usr/local/etc/catlfish/catlfish.config /var/run/catlfish/ +RUN mkdir /var/run/catlfish WORKDIR /var/run/catlfish +RUN mkdir erlang_log sasl_log supervisord_log +RUN chown -R catlfish:catlfish /var/run/catlfish +RUN ln -s /usr/local/etc/catlfish/catlfish.config /var/run/catlfish/ # Run supervisord. ADD supervisord.conf /etc/supervisor/ +WORKDIR /var/run/catlfish USER catlfish CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] |