File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ RUN apt-get update && apt-get install -y --force-yes \
3535 php7.0-zip \
3636 php7.0-memcached \
3737 php7.0-gd \
38+ php7.0-xdebug \
3839 php-dev \
3940 libcurl4-openssl-dev \
4041 libedit-dev \
@@ -65,13 +66,18 @@ RUN npm link gulp
6566# Add a symbolic link for Node
6667RUN ln -s /usr/bin/nodejs /usr/bin/node
6768
68- # Add an alias for PHPUnit
69- RUN echo "alias phpunit='./vendor/bin/phpunit'" >> ~/.bashrc
69+ # remove load xdebug extension (only load on phpunit command)
70+ RUN sed -i 's/^/;/g' /etc/php/7.0/cli/conf.d/20-xdebug.ini
71+
72+ # Add bin folder of composer to PATH.
73+ RUN echo "export PATH=${PATH}:/var/www/codeigniter/vendor/bin" >> ~/.bashrc
7074
7175# Install Composer
7276RUN curl -s http://getcomposer.org/installer | php \
73- && mv composer.phar /usr/local/bin/ \
74- && echo "alias composer='/usr/local/bin/composer.phar'" >> ~/.bashrc
77+ && mv composer.phar /usr/local/bin/composer
78+
79+ # Load xdebug Zend extension with phpunit command
80+ RUN echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/laravel/vendor/bin/phpunit'" >> ~/.bashrc
7581
7682# Install mongodb extension
7783RUN pecl install mongodb
You can’t perform that action at this time.
0 commit comments