1
0
mirror of https://github.com/jcwimer/railsVagrant synced 2026-03-24 18:44:42 +00:00
Files
rails-vagrant/setup/build.sh
2018-01-23 11:22:10 -05:00

37 lines
1003 B
Bash

#!/usr/bin/env bash
# Docker versions
COMPOSE_VERSION='1.15.0'
DOCKER_VERSION='17.06.2'
add-apt-repository ppa:ondrej/php -y
# Install docker key and repo
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository -y \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update -qq
apt-get install -y -qq \
software-properties-common \
python-software-properties \
curl \
git \
php7.1 \
php7.1-common
php7.1-curl \
php7.1-xml \
php7.1-zip \
php7.1-gd \
php7.1-mysql \
php7.1-mbstring
apache2-utils
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
# Install docker and compose
apt-get install -y -qq docker-ce=${DOCKER_VERSION}~ce-0~ubuntu
curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Add ubuntu to docker group
usermod -a -G docker vagrant