Compare commits

..

9 Commits

Author SHA1 Message Date
Jordan Atwood 5f4e600298
Mount full lib directory as volume 2 years ago
Miro Prasil 0bfe8020b8 Upgraded to 2020-07-29 4 years ago
Boris 995877c512 Merged in famasa/docker_dokuwiki (pull request #14) 4 years ago
boris 59e7c26bc1 Added perl-modules-5.26 4 years ago
boris f45f3612c9 removed the ENV for DEBIAN_FRONTEND=noninteractive and use export instead 4 years ago
boris 20587c2c01 Merge branch 'master' of bitbucket.org:famasa/docker_dokuwiki 4 years ago
boris 84bcd38daa Updated ubuntu base to ubuntu:18.04 and dokuwiki to 2018-04-22c 4 years ago
Boris 160185e2be Merged mprasil/docker_dokuwiki into master 5 years ago
Boris 0c01c753a7 Merged in famasa/docker_dokuwiki (pull request #13) 5 years ago
  1. 12
      Dockerfile
  2. 18
      README.md
  3. 2
      docker-startup.sh

@ -1,16 +1,16 @@
# VERSION 0.1
# VERSION 0.2
# AUTHOR: Miroslav Prasil <miroslav@prasil.info>
# DESCRIPTION: Image with DokuWiki & lighttpd
# TO_BUILD: docker build -t mprasil/dokuwiki .
# TO_RUN: docker run -d -p 80:80 --name my_wiki mprasil/dokuwiki
FROM ubuntu:16.04
FROM ubuntu:18.04
MAINTAINER Miroslav Prasil <miroslav@prasil.info>
# Set the version you want of Twiki
ENV DOKUWIKI_VERSION=2018-04-22b
ARG DOKUWIKI_CSUM=605944ec47cd5f822456c54c124df255
ENV DOKUWIKI_VERSION=2020-07-29
ARG DOKUWIKI_CSUM=8867b6a5d71ecb5203402fe5e8fa18c9
ARG DOKUWIKI_DEBIAN_PACKAGES=""
# Update & install packages & cleanup afterwards
@ -26,6 +26,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
php-curl \
php-xml \
php-mbstring \
perl-modules-5.26 \
${DOKUWIKI_DEBIAN_PACKAGES} && \
apt-get clean autoclean && \
apt-get autoremove && \
@ -48,8 +49,7 @@ RUN mkdir /var/run/lighttpd && chown www-data.www-data /var/run/lighttpd
COPY docker-startup.sh /startup.sh
EXPOSE 80
VOLUME ["/dokuwiki/data/","/dokuwiki/lib/plugins/","/dokuwiki/conf/","/dokuwiki/lib/tpl/","/var/log/"]
VOLUME ["/dokuwiki/data/","/dokuwiki/lib/","/dokuwiki/conf/","/var/log/"]
ENTRYPOINT ["/startup.sh"]
CMD ["run"]

@ -5,7 +5,14 @@ DokuWiki docker container
To run image:
-------------
docker run -d -p 80:80 --name my_wiki mprasil/dokuwiki
First, build the image locally to incorporate the changes [from the upstream
image](https://hub.docker.com/r/mprasil/dokuwiki):
docker build -t my_dokuwiki .
Once built, a container of this modified image can be run:
docker run -d -p 80:80 --name my_wiki my_dokuwiki
You can now visit the install page to configure your new DokuWiki wiki.
@ -19,8 +26,7 @@ The run command above will store your data in internal Docker volumes. If you pr
docker run -d -p 80:80 --name my_wiki \
-v /data/docker/dokuwiki/data:/dokuwiki/data \
-v /data/docker/dokuwiki/conf:/dokuwiki/conf \
-v /data/docker/dokuwiki/lib/plugins:/dokuwiki/lib/plugins \
-v /data/docker/dokuwiki/lib/tpl:/dokuwiki/lib/tpl \
-v /data/docker/dokuwiki/lib:/dokuwiki/lib \
-v /data/docker/dokuwiki/logs:/var/log \
mprasil/dokuwiki
@ -80,9 +86,3 @@ nice URLs in settings (Advanced -> Nice URLs, set to ".htaccess")
For better performance enable xsendfile in settings.
Set to proprietary lighttpd header (for lighttpd < 1.5)
Build your own
--------------
docker build -t my_dokuwiki .

@ -25,7 +25,7 @@ if [ "$1" = 'overwrite' ]; then overwrite=1; else overwrite=0; fi
if [ "$1" = 'run' ] || [ "$1" = 'downgrade' ] || [ "$1" = 'overwrite' ]; then
# Check each volume directory in turn
for d in conf data lib/plugins lib/tpl; do
for d in conf data lib; do
if [ -f "$dokudir/$d/$verfile" ]; then
volumever="$(date -f <(awk '{print $1}' "$dokudir/$d/$verfile" | tr -d '[:alpha:]') +%s)"
else

Loading…
Cancel
Save