diff options
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"] |