initial commit

This commit is contained in:
dave 2021-05-05 17:08:21 -07:00
commit 5984ee2119
3 changed files with 35 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -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"]

10
Makefile Normal file
View File

@ -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)

6
README.md Normal file
View File

@ -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