File tree Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,16 @@ FROM php:7.0-apache
3
3
4
4
ENV http_proxy ${HTTP_PROXY}
5
5
ENV https_proxy ${HTTP_PROXY}
6
- ENV XDEBUG_ENABLED=false
7
6
ENV NR_ENABLED=false
8
7
ENV NR_APP_NAME=""
9
8
ENV NR_LICENSE_KEY=""
10
9
ENV SESSION_HANDLER=false
11
10
ENV SESSION_HANDLER_NAME=""
12
11
ENV SESSION_HANDLER_PATH=""
12
+ ENV XDEBUG_AUTOSTART=false
13
+ ENV XDEBUG_CONNECT_BACK=true
14
+ ENV XDEBUG_ENABLED=false
15
+ ENV XDEBUG_IDEKEY="docker"
13
16
14
17
RUN apt-get update && apt-get install -y wget vim supervisor zip libfreetype6-dev libjpeg62-turbo-dev \
15
18
libmcrypt-dev libpng-dev libssl-dev libaio1 git libcurl4-openssl-dev libxslt-dev \
@@ -66,4 +69,4 @@ WORKDIR "/var/www/html"
66
69
67
70
EXPOSE 8080 9001
68
71
69
- CMD ["/tini" , "--" , "/usr/bin/apache-run" ]
72
+ CMD ["/tini" , "--" , "/usr/bin/apache-run" ]
Original file line number Diff line number Diff line change
1
+ all : build
2
+
3
+ IMAGE =lojassimonetti/php-apache-oci8-composer
4
+ TAG =$(shell git branch | grep \* | cut -d ' ' -f2)
5
+
6
+ build :
7
+ docker build . -t $(IMAGE ) :$(TAG )
8
+
9
+ push : build
10
+ docker push $(IMAGE ) :$(TAG )
11
+
Original file line number Diff line number Diff line change 3
3
if [[ $XDEBUG_ENABLED == true ]]; then
4
4
echo " zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
5
5
echo " xdebug.var_display_max_depth=5" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
6
+ echo " xdebug.idekey=${XDEBUG_IDEKEY} " | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
7
+ echo " xdebug.remote_enable=1" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
8
+ echo " xdebug.remote_port=9000" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
9
+
10
+ [[ ${XDEBUG_AUTOSTART} == true ]] && {
11
+ echo " xdebug.remote_autostart=on" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
12
+ } || echo " xdebug.remote_autostart=off" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
13
+
14
+ [[ ${XDEBUG_CONNECT_BACK} == true ]] && {
15
+ echo " xdebug.remote_connect_back=1" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
16
+ } || echo " xdebug.remote_connect_back=0" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
6
17
fi
7
18
8
19
if [[ $NR_ENABLED == true ]]; then
@@ -24,4 +35,4 @@ sudo rm -rf var/cache/* var/logs/* \
24
35
&& sudo chown -R www-data:www-data /var/www/html/var/logs && chmod 777 /var/www/html/var/logs \
25
36
&& sudo chown -R www-data:www-data /var/www/html/var/sessions && chmod 777 /var/www/html/var/sessions \
26
37
27
- apache2-foreground
38
+ exec apache2-foreground
You can’t perform that action at this time.
0 commit comments