Differences between revisions 1 and 8 (spanning 7 versions)
Revision 1 as of 2015-04-16 01:58:50
Size: 1128
Editor: terri
Comment: initial attempt at dockerfile. I'd be surprised if this one will work, just saving so I have a baseline.
Revision 8 as of 2015-04-16 14:15:21
Size: 1294
Editor: terri
Comment: Fixed 'source' (which is a bash-ism) to '.' which will let this run all docker-style
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This is a scratchpad for a Dockerfile: This page is a scratchpad for Terri's Dockerfile. It probably does not work at this time.
Line 4: Line 4:
Line 5: Line 6:
# Dockerfile to setup GNU Mailman Suite  # Dockerfile to setup GNU Mailman Suite
Line 12: Line 13:
MAINTAINER Terri Oda MAINTAINER Terri
Line 16: Line 17:
RUN apt-get install bzr python3-dev python3-pip python-dev python-pip python-virtualenv RUN apt-get install -y bzr python3-dev python3-pip python-dev python-pip python-virtualenv
Line 19: Line 20:
RUN apt-get install nodejs npm RUN apt-get install -y nodejs npm
Line 36: Line 37:
RUN source venv/bin/activate RUN . venv/bin/activate
Line 39: Line 40:
EXPOSE 80 EXPOSE 8000
Line 45: Line 46:
RUN ./bin/mailman-web-django-admin runserver & # This sets the django webserver up to not only run, but binds it to all interfaces, port 8000
RUN ./bin/mailman-web-django-admin runserver 0.0.0.0:8000 &
}}}

This page is a scratchpad for Terri's Dockerfile. It probably does not work at this time.

#########################################
# 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 -y bzr python3-dev python3-pip python-dev python-pip python-virtualenv

# Get the nodejs stuff
RUN apt-get install -y 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 . 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
# This sets the django webserver up to not only run, but binds it to all interfaces, port 8000
RUN ./bin/mailman-web-django-admin runserver 0.0.0.0:8000 &

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