mediawiki/Dockerfile

22 lines
790 B
Docker
Raw Normal View History

2014-06-20 01:44:35 -04:00
# Mediawiki-Apache
#
# Version 1.0
2014-06-18 16:18:40 -04:00
FROM tutum/apache-php:latest
2014-06-20 01:44:35 -04:00
MAINTAINER John E Arnold <iohannes.eduardus.arnold@gmail.com>
2014-06-18 16:18:40 -04:00
2014-06-20 01:44:35 -04:00
# Remove the old hello world app and grab Mediawiki source
2014-06-18 17:22:54 -04:00
RUN rm -fr /app && git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git /app
RUN cd /app && git checkout -b REL1_23 origin/REL1_23
2014-06-20 01:44:35 -04:00
# Create the section for persistent files
RUN mkdir /var/lib/mediawiki
2014-06-18 17:22:54 -04:00
2014-06-20 01:44:35 -04:00
# Move the files that need to be persistent and create symbolic links to them
2014-06-18 17:22:54 -04:00
RUN mv /app/images /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/images /app/images
RUN mv /app/skins /var/lib/mediawiki/ && ln -s /var/lib/mediawiki/skins /app/skins
RUN touch /var/lib/mediawiki/LocalSettings.php && ln -s /var/lib/mediawiki/LocalSettings.php /app/LocalSettings.php
2014-06-18 16:18:40 -04:00
EXPOSE 80
CMD ["/run.sh"]