Skip to content

Commit

Permalink
docker: Remove unused mongo PHP extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
enisoc committed Nov 3, 2015
1 parent 19c9069 commit 3dd746a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions docker/bootstrap/Dockerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ RUN mkdir -p /vt/bin && \
curl -sL https://phar.phpunit.de/phpunit-4.8.9.phar > /vt/bin/phpunit && \
chmod +x /vt/bin/phpunit && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/vt/bin --filename=composer && \
pecl install mongo && \
echo 'extension=mongo.so' > /etc/php5/cli/conf.d/20-mongo.ini && \
pecl install xdebug && \
echo "zend_extension=$(pecl config-get ext_dir default)/xdebug.so" > /etc/php5/cli/conf.d/20-xdebug.ini

Expand Down
14 changes: 0 additions & 14 deletions travis/php_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,6 @@ else
curl -sS https://getcomposer.org/installer | php -- --install-dir=$HOME/.phpenv/bin/ --filename=composer
fi

if [ -f $HOME/.phpenv/lib/mongo.so ]; then
echo "Using cached mongo.so"
else
mkdir -p $HOME/mongo
git clone https://github.com/mongodb/mongo-php-driver.git $HOME/mongo
cd $HOME/mongo
phpize
./configure
make
mkdir -p $HOME/.phpenv/lib
mv modules/mongo.so $HOME/.phpenv/lib/
echo "extension=$HOME/.phpenv/lib/mongo.so" > ~/.phpenv/versions/$version/etc/conf.d/mongo.ini
fi

if [ ! -f $HOME/.phpenv/lib/grpc.so ]; then
echo "Forcing rebuild of gRPC so we can build PHP extension"
rm -rf $HOME/gopath/dist
Expand Down

0 comments on commit 3dd746a

Please sign in to comment.