From: Thorsten S Date: Sat, 8 Jul 2017 14:09:58 +0000 (+0200) Subject: users: X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=d28782b9b1cbff778c2e8bf6cd25ee2b4688121f;p=dfde-docker.git users: kekskopf:kekskopf user_1:user_1 user_100..150 helferscript: bash ctrl.sh start/stop/restart/safedb/commit theme muss parallel dazu in ../dfde-theme liegen, siehe docker/run.sh. Im ctrl.sh script steht außerdem mein username drin für den db-extract. bitte anpassen, wers braucht. Kann aber auch jeder selbst so machen wie er lustig ist. --- d28782b9b1cbff778c2e8bf6cd25ee2b4688121f diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/ctrl.sh b/ctrl.sh new file mode 100755 index 0000000..1bee1ac --- /dev/null +++ b/ctrl.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +cmd=$1 +pushd docker + +case $cmd in +stop) + docker ps -q | xargs docker stop -t1 + ;; +start) + bash run.sh & + ;; +restart) + bash $0 stop && bash $0 start + ;; +safedb) + docker ps -q | xargs -I_ docker cp _:/tmp/db db + chown thorsten:thorsten db + ;; +commit) + docker ps -q | xargs -I_ docker commit _ + ;; +esac + +popd diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..18c9c22 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,19 @@ +FROM php:5.6-apache + +MAINTAINER nobody + +RUN apt-get update +RUN apt-get install -y zip +COPY phpBB-3.2.0.zip /tmp/ + +RUN unzip /tmp/phpBB-3.2.0.zip -d /var/www/html/ + +COPY db /tmp/db +COPY config.php /var/www/html/phpBB3/ + +RUN find /var/www/html/phpBB3 -ls >> /var/www/html/sitemap.txt +RUN chown www-data:www-data -R /var/www/html/phpBB3 +RUN chown www-data:www-data /tmp/db + +RUN rm -rf /var/www/html/phpBB3/install + diff --git a/docker/config.php b/docker/config.php new file mode 100644 index 0000000..bb5bb13 --- /dev/null +++ b/docker/config.php @@ -0,0 +1,19 @@ +