summaryrefslogtreecommitdiffstats
path: root/Services/php
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-28 21:04:24 +0100
committerstartxfr <clarue@startx.fr>2015-11-28 21:04:24 +0100
commit7b3b27e440b076f7a599555eaf963e719caab080 (patch)
tree1f6caa5506433de8850a66316abf1db80fc5ed01 /Services/php
parent59bbf66b7b1e4490694f2c5f732ddf9380acf053 (diff)
downloadphpmyadmin-7b3b27e440b076f7a599555eaf963e719caab080.tar.gz
phpmyadmin-7b3b27e440b076f7a599555eaf963e719caab080.tar.bz2
phpmyadmin-7b3b27e440b076f7a599555eaf963e719caab080.tar.xz
phpmyadmin-7b3b27e440b076f7a599555eaf963e719caab080.zip
start reshape of mysql container
Diffstat (limited to 'Services/php')
-rw-r--r--Services/php/Dockerfile8
-rw-r--r--Services/php/read2
-rw-r--r--Services/php/run.sh1
3 files changed, 8 insertions, 3 deletions
diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile
index 62b9564..ee02d89 100644
--- a/Services/php/Dockerfile
+++ b/Services/php/Dockerfile
@@ -9,12 +9,16 @@ RUN dnf -y install php php-pecl-mongo php-cli php-pear \
php-tcpdf-dejavu-sans-fonts php-tidy \
&& dnf clean all
ENV LOG_PATH=/data/logs/apache_php \
- APP_PATH=/data/apache_php
+ APP_PATH=/data/apache_php \
+ STARTUPLOG=/data/logs/apache_php/startup.log
COPY httpd.conf $HTTPDCONF
COPY php.ini /etc/php.d/sx.ini
COPY run.sh /bin/
RUN chmod 775 /bin/run.sh && \
- chmod ug+r $HTTPDCONF
+ chmod ug+r $HTTPDCONF && \
+ mkdir $APP_PATH && \
+ mkdir $LOG_PATH && \
+ touch $STARTUPLOG
COPY ./ $APP_PATH
RUN rm -f $APP_PATH/Dockerfile $APP_PATH/httpd.conf $APP_PATH/run.sh && \
chown -R apache:apache $APP_PATH $LOG_PATH && \
diff --git a/Services/php/read b/Services/php/read
new file mode 100644
index 0000000..3cd6763
--- /dev/null
+++ b/Services/php/read
@@ -0,0 +1,2 @@
+Server version: Apache/2.4.16 (Fedora)
+Server built: Jul 17 2015 08:02:56
diff --git a/Services/php/run.sh b/Services/php/run.sh
index a59a9af..4d4c580 100644
--- a/Services/php/run.sh
+++ b/Services/php/run.sh
@@ -6,7 +6,6 @@ if [[ "$0" == *"run.sh" && ! $1 = "" ]];then
eval "$@";
fi
-check_environment | tee -a $STARTUPLOG
check_httpd_environment | tee -a $STARTUPLOG
display_container_httpd_header | tee -a $STARTUPLOG
begin_config | tee -a $STARTUPLOG