Differences between revisions 2 and 3
Revision 2 as of 2015-04-16 01:59:09
Size: 1131
Editor: terri
Comment: initial attempt at dockerfile. I'd be surprised if this one will work, just saving so I have a baseline.
Revision 3 as of 2015-04-16 02:00:48
Size: 1133
Editor: terri
Comment:
Deletions are marked like this. Additions are marked like this.
Line 39: Line 39:
EXPOSE 80 EXPOSE 8000

This is a scratchpad for a Dockerfile:

#########################################
# Dockerfile to setup GNU Mailman Suite 
# Based on Ubuntu
#########################################
# Set the base image to Ubuntu
FROM ubuntu

# File Author / Maintainer
MAINTAINER Terri

# Update the sources and install some basic python stuff
RUN apt-get update
RUN apt-get install bzr python3-dev python3-pip python-dev python-pip python-virtualenv

# Get the nodejs stuff
RUN apt-get install nodejs npm
RUN npm install -g less
RUN ln -s /usr/bin/nodejs /usr/bin/node

# Set the default directory where CMD will execute
WORKDIR /mailman3

# Get Mailman Bundler
RUN bzr branch lp:mailman-bundler

# Get buildout, go into Mailman Bundler and build
RUN pip install zc.buildout
WORKDIR /mailman3/mailman-bundler
RUN buildout

# Set up virtualenv
RUN virtualenv venv
RUN source venv/bin/activate

# Expose ports
EXPOSE 8000

# Prep some stuff
RUN ./bin/mailman-post-update
RUN ./bin/mailman-web-django-admin createsuperuser
RUN ./bin/mailman start
RUN ./bin/mailman-web-django-admin runserver &

MailmanWiki: DEV/Mailman 3.0/Mailman 3.0 Suite Dockerfile (last edited 2016-03-03 12:30:41 by SimonHanna)