destructr/ci/docker_install.sh
2018-08-21 19:46:25 -06:00

18 lines
423 B
Bash

#!/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
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
# Install composer
curl -sS https://getcomposer.org/installer | php
php composer.phar install