Skip to content

Instantly share code, notes, and snippets.

@mattyb
Created June 5, 2017 20:11
Show Gist options
  • Save mattyb/d507a6d0afcd3d85f334ae97b8e1a361 to your computer and use it in GitHub Desktop.
Save mattyb/d507a6d0afcd3d85f334ae97b8e1a361 to your computer and use it in GitHub Desktop.
mistral docker
# https://github.com/openstack/mistral/blob/4.0.1/tools/docker/Dockerfile
FROM ubuntu:16.04
RUN apt-get -qq update
RUN apt-get install -y sudo git
RUN git clone https://github.com/openstack/mistral.git /opt/stack/mistral
RUN cd /opt/stack/mistral && git checkout 4.0.1
RUN /opt/stack/mistral/tools/docker/Dockerfile_script.sh
EXPOSE 8989
VOLUME ["/opt/stack/mistral"]
VOLUME ["/home/mistral"]
WORKDIR /home/mistral
CMD mistral-server --server all --config-file /home/mistral/mistral.conf
ENV TINI_SHA 066ad710107dc7ee05d3aa6e4974f01dc98f3888
# Use tini as subreaper in Docker container to adopt zombie processes
RUN curl -fsSL https://github.com/krallin/tini/releases/download/v0.5.0/tini-static -o /bin/tini \
&& chmod +x /bin/tini \
&& echo "$TINI_SHA /bin/tini" | sha1sum -c -
ENTRYPOINT ["/bin/tini", "--"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment