commit 5984ee2119270678b306b9b02e803fb6ac30acce Author: dave Date: Wed May 5 17:08:21 2021 -0700 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..901b287 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:focal + +RUN apt-get update && \ + apt-get install -y wget python-setuptools supervisor && \ + rm -rf /var/lib/apt/lists/* + +RUN wget -qO /tmp/moin.tgz https://github.com/moinwiki/moin-1.9/releases/download/1.9.11/moin-1.9.11.tar.gz && \ + tar zxvf /tmp/moin.tgz -C /tmp/ --strip-components=1 && \ + cd /tmp && \ + python2.7 setup.py install && \ + rm -rf /tmp/* && \ + useradd moin && \ + mkdir /srv/moin && \ + chown moin /srv/moin && \ + chgrp moin /srv/moin + +USER moin + +ENTRYPOINT ["moin", "--config-dir=/srv/moin", "server", "standalone"] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..880c9fa --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +DOCKEROPTS := +TAG := latest + +.PHONY: image +image: + docker build -t dockermirror:5000/dpedu/moin:$(TAG) $(DOCKEROPTS) . + +.PHONY: push +push: image + docker push dockermirror:5000/dpedu/moin:$(TAG) diff --git a/README.md b/README.md new file mode 100644 index 0000000..afaca92 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +Moin +==== + +Moinmoin docker image. + +This image contains no base config. See the following for how to populate /srv/moin: http://moinmo.in/HowTo/UbuntuQuick#Configuration_files_copy