diff options
Diffstat (limited to 'packaging/docker/catlfish-dev/Dockerfile')
-rw-r--r-- | packaging/docker/catlfish-dev/Dockerfile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packaging/docker/catlfish-dev/Dockerfile b/packaging/docker/catlfish-dev/Dockerfile index ae50409..b3d19cb 100644 --- a/packaging/docker/catlfish-dev/Dockerfile +++ b/packaging/docker/catlfish-dev/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update RUN echo 'debconf debconf/frontend select noninteractive' | debconf-set-selections RUN apt-get -y -q install gcc git make curl +# Build dependencies in /usr/local/src. WORKDIR /usr/local/src RUN curl https://www.ct.nordu.net/dist/mochiweb-v2.12.2.tar.gz | tar xzf - @@ -29,6 +30,7 @@ RUN curl https://www.ct.nordu.net/dist/erlang-idna-1.0.2.tar.gz | tar xzf - -C h RUN curl https://www.ct.nordu.net/dist/ssl_verify_hostname-1.0.4.tar.gz | tar xzf - -C hackney/deps && ln -s ssl_verify_hostname-1.0.4 hackney/deps/ssl_verify_hostname RUN make -C hackney REBAR=../lager/rebar +# Build plop and catlfish. RUN git clone https://git.nordu.net/plop.git RUN make -C plop @@ -36,9 +38,15 @@ RUN git clone https://git.nordu.net/catlfish.git RUN make -C catlfish all RUN make -C catlfish PREFIX=/usr/local/catlfish release +# Config dir and database dir are mounted from host using `-v' to +# 'docker run'. VOLUME /usr/local/catlfish VOLUME /var/local/db/catlfish -ADD supervisord.conf /etc/supervisor/ +# Working directory is where catlfish.config is. WORKDIR /usr/local/etc/catlfish + +# Run supervisord. TODO: make log- and pidfile end up in +# /var/run/catlfish +ADD supervisord.conf /etc/supervisor/ CMD ["/usr/bin/supervisord"] |