Skip to content

Instantly share code, notes, and snippets.

@iolson
Created February 2, 2016 21:56
Show Gist options
  • Save iolson/5e3695bc5c9f7afafeb3 to your computer and use it in GitHub Desktop.
Save iolson/5e3695bc5c9f7afafeb3 to your computer and use it in GitHub Desktop.
#!/bin/bash
# We need to install dependencies only for Docker
[[ ! -e /.dockerinit ]] && exit 0
set -xe
# Update
apt-get update -yqq
# Git
apt-get install git -yqq
# Zlib
apt-get install zlib1g-dev
# PHPUnit
curl -o /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit
# PHP Extensions
docker-php-ext-install pdo_mysql
docker-php-ext-install mbstring
docker-php-ext-install zip
# Composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
@Jekis
Copy link

Jekis commented Jun 15, 2016

.dockerinit removed moby/moby#19490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment