Permalink
Browse files

Add xdebug to docker container dev environment

  • Loading branch information...
eberhardtm committed Apr 20, 2017
1 parent 6dc2064 commit da3d46d2bdf7c0fb06bcc9af18f5509dedb7e37d
Showing with 9 additions and 3 deletions.
  1. +6 −3 Dockerfile
  2. +3 −0 docker_conf/xdebug.ini
View
@@ -4,16 +4,19 @@ ENV container docker
USER root
RUN yum -y install httpd;
# install php7 when canopy core is ready
-#RUN rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
RUN rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
-#RUN yum -y install php70w php70w-common php70w-mysql php70w-pgsql php70w-devel php70w-gd php70w-pecl-memcache php70w-pspell php70w-snmp php70w-xmlrpc php70w-xml;
-RUN yum -y install php php-common php-mysql php-pgsql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml;
+RUN rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
+RUN yum -y install php70w php70w-common php70w-mysql php70w-pgsql php70w-devel php70w-pear php70w-gd php70w-pecl-memcache php70w-pspell php70w-snmp php70w-xmlrpc php70w-xml;
+#RUN yum -y install php php-common php-mysql php-pgsql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml php-pear;
RUN yum -y install phpmyadmin phpPgAdmin vim
RUN yum -y update
+RUN yum -y install gcc make
+RUN pecl install Xdebug
ADD docker_conf/phpMyAdmin.conf /etc/httpd/conf.d/phpMyAdmin.conf
ADD docker_conf/phpPgAdmin.conf /etc/httpd/conf.d/phpPgAdmin.conf
ADD docker_conf/myadmin_config.inc.php /etc/phpMyAdmin/config.inc.php
ADD docker_conf/pgadmin_config.inc.php /etc/phpPgAdmin/config.inc.php
+ADD docker_conf/xdebug.ini /etc/php.d/xdebug.ini
ADD docker-entry.sh /docker-entry.sh
EXPOSE 80
CMD ["-D","FOREGROUND"]
View
@@ -0,0 +1,3 @@
+[xdebug]
+zend_extension="/usr/lib64/php/modules/xdebug.so"
+xdebug.remote_enable = 1

0 comments on commit da3d46d

Please sign in to comment.