diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-04-01 22:33:11 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-04-01 22:33:11 +0200 |
commit | 64c65902819116d44a8890e7af686e7c2eaa828c (patch) | |
tree | f2e7f7c2b17d2266331058f1cf530c81474abae5 /packaging/docker/catlfish-merge/Dockerfile | |
parent | 7ede3c3566a05146f79fae7235e6e4dbdb157acd (diff) |
Run merge.sh under supervisord.
We want the log.
Diffstat (limited to 'packaging/docker/catlfish-merge/Dockerfile')
-rw-r--r-- | packaging/docker/catlfish-merge/Dockerfile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/packaging/docker/catlfish-merge/Dockerfile b/packaging/docker/catlfish-merge/Dockerfile index b2ecc68..668ee0c 100644 --- a/packaging/docker/catlfish-merge/Dockerfile +++ b/packaging/docker/catlfish-merge/Dockerfile @@ -18,18 +18,19 @@ RUN git clone https://git.nordu.net/catlfish.git VOLUME /usr/local/etc/catlfish VOLUME /var/local/db/catlfish-merge +# Copy merge.sh. +RUN mkdir -p /usr/local/catlfish/bin +ADD merge.sh /usr/local/catlfish/bin/ + # We run from /var/run/catlfish. RUN mkdir /var/run/catlfish RUN chgrp daemon /var/run/catlfish RUN chmod 775 /var/run/catlfish - -# Copy merge.sh. -RUN mkdir -p /usr/local/catlfish/bin -ADD merge.sh /usr/local/catlfish/bin/ +WORKDIR /var/run/catlfish # Don't run as root. USER daemon -# Start merge.sh -WORKDIR /var/run/catlfish -CMD ["/usr/local/catlfish/bin/merge.sh", "300", "1200", "/var/local/db/catlfish-merge"] +# Run supervisord. +ADD supervisord.conf /etc/supervisor/ +CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] |