master
Julian M. Kunkel 2018-05-05 21:41:55 +01:00
commit 470a4692e7
4 changed files with 21 additions and 0 deletions

10
dev/Dockerfile 100644
View File

@ -0,0 +1,10 @@
FROM ubuntu:18.04
WORKDIR /data
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y apache2 libapache2-mod-php
RUN rm /etc/apache2/sites-enabled/000-default.conf
RUN ln -s /data/dev/apache.conf /etc/apache2/sites-enabled/
RUN a2enmod rewrite
CMD /data/dev/run-internal.sh

View File

@ -0,0 +1,3 @@
#!/bin/bash
docker build -t kunkel/oer .

View File

@ -0,0 +1,2 @@
#!/bin/bash
docker run -p 127.0.0.1:8888:80 -h hps -it --rm -v $PWD/../:/data/ kunkel/oer

View File

@ -0,0 +1,6 @@
#!/bin/bash
adduser --system --no-create-home --home /data --uid 1000 www-user
sed -i "s/APACHE_RUN_USER=www-data/APACHE_RUN_USER=www-user/" /etc/apache2/envvars
/etc/init.d/apache2 start
tail -f /var/log/apache2/error.log &
/bin/bash