Skip to content

Commit

Permalink
Merge pull request #4 from spira/no-xdebug
Browse files Browse the repository at this point in the history
removing xdebug as it's unused
  • Loading branch information
zakhenry committed Mar 21, 2016
2 parents 5db336b + 7324168 commit 47c03ea
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ VOLUME ["/data"]

#add custom ppa for git so that we get the latest version
RUN printf "deb http://ppa.launchpad.net/git-core/ppa/ubuntu precise main\ndeb-src http://ppa.launchpad.net/git-core/ppa/ubuntu precise main" >> /etc/apt/sources.list.d/git-core.list && \
apt-get update || true && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E1DF1F24 && \
apt-get update || true


# Then install node with:
RUN apt-get install -y curl && \
Expand Down Expand Up @@ -41,7 +42,7 @@ RUN cd /tmp && \
phpize && \
./configure && make && \
cp modules/xdebug.so /usr/local/lib/php/extensions/no-debug-non-zts-20151012 && \
echo 'zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so' >> /usr/local/etc/php/php.ini && \
echo 'zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
rm -rf /tmp/xdebug*

RUN which npm
Expand Down Expand Up @@ -96,6 +97,15 @@ RUN npm config set tmp /root/.tmp && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
npm cache clear

RUN printf "#!/bin/bash\nmv /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini.disabled" >> /usr/local/bin/xdebug-off
RUN printf "#!/bin/bash\nmv /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini.disabled /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" >> /usr/local/bin/xdebug-on
RUN chmod +x /usr/local/bin/xdebug-off
RUN chmod +x /usr/local/bin/xdebug-on

RUN mv /usr/bin/composer /usr/bin/composer-actual
RUN printf '#!/bin/bash\nxdebug-off;/usr/bin/composer-actual "$@";xdebug-on' >> /usr/bin/composer && chmod +x /usr/bin/composer


# Verify all install locations
RUN which npm
RUN which bower
Expand Down

0 comments on commit 47c03ea

Please sign in to comment.