Core/CI/docker_install.sh

18 lines
444 B
Bash
Raw Normal View History

2016-05-25 11:46:13 +00:00
#!/bin/bash
# We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
set -xe
# Install git (the php image doesn't have it) which is required by composer
apt-get update -yqq
apt-get install git zip unzip -yqq
# Install xdebug
pecl install xdebug
docker-php-ext-enable xdebug
2016-05-25 11:46:13 +00:00
# Install mysql driver
# Here you can install any other extension that you need
docker-php-ext-install pdo_mysql