Files
OSIT-Mailman3/core/Dockerfile
Abhilash Raj 67089dde74 Directly run the master runner as CMD, instead of mailman start.
`mailman start` command does not nothing but parses the configuration and starts
the appropriate runners. The start command is implemented such that it forks the
master runner, which in-turn starts the all the rest of the runners. It turns
out that `master` is also exported as an console script which can directly be
started instead of running `mailman start` command. This makes containerizing
mailman much more easier.
2017-04-10 01:26:10 -07:00

24 lines
734 B
Docker

FROM python:3.5
MAINTAINER Abhilash Raj
ENV DEBIAN_FRONTEND=noninteractive
# Install the latest master branch of the mailman directly
# from the Gitlab.
RUN apt-get update && apt-get install -y postgresql-client wget \
&& wget -O mailman.zip https://gitlab.com/mailman/mailman/repository/archive.zip?ref=master \
&& wget -O mailman_hyperkitty.zip https://gitlab.com/mailman/mailman-hyperkitty/repository/archive.zip?ref=master \
&& pip install mailman.zip mailman_hyperkitty.zip ipython psycopg2 \
&& rm mailman.zip mailman_hyperkitty.zip
ADD assets/run.sh /opt/run.sh
# Change the working directory.
WORKDIR /opt/mailman
EXPOSE 8001
ENTRYPOINT ["/opt/run.sh"]
CMD ["/usr/local/bin/master", "-C", "/config/mailman.cfg"]