destructr/ci/docker_install.sh

19 lines
423 B
Bash
Raw Normal View History

2018-08-22 01:46:25 +00:00
#!/bin/sh
# We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && exit 0
set -xe
# Install git (the php image doesn't have it) which is required by composer
2018-08-22 01:44:52 +00:00
apk update
apk add git
# Install mysql driver
# Here you can install any other extension that you need
docker-php-ext-install pdo_mysql pdo_sqlite
2018-08-22 01:44:52 +00:00
# Install composer
curl -sS https://getcomposer.org/installer | php
php composer.phar install