Try a different approach

This commit is contained in:
Timothy Warren 2017-03-01 10:53:10 -05:00
parent 3cefffd299
commit 098b04ce57
2 changed files with 3 additions and 14 deletions

View File

@ -12,7 +12,8 @@ services:
test:7: test:7:
before_script: before_script:
- sh build/docker_install.sh > /dev/null - sh build/docker_install.sh > /dev/null
- apk add --no-cache php7-phpdbg - apk add --no-cache php7-apcu php7-memcached php7-phpdbg
- echo '\nextension=apcu.so\nextension=memcached.so' >> /etc/php7/php.ini
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install --ignore-platform-reqs - php composer.phar install --ignore-platform-reqs
image: php:7-alpine image: php:7-alpine

View File

@ -8,17 +8,5 @@ set -xe
# Install git (the php image doesn't have it) which is required by composer # Install git (the php image doesn't have it) which is required by composer
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
apk upgrade --update --no-cache \ apk upgrade --update --no-cache \
g++ \
make \
automake \
curl \ curl \
git \ git
libmemcached-dev
echo -e 'apcu\nmemcached' >> /usr/src/php-available-exts
docker-php-source extract
pecl install apcu-5.1.8
pecl install memcached-3.0.3
docker-php-ext-enable apcu memcached
docker-php-source delete