mirror of
https://github.com/jcwimer/railsVagrant
synced 2026-03-24 18:44:42 +00:00
Changed line endings and alined build script apt-gets in a managable manner
This commit is contained in:
@@ -1,16 +1,31 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
apt-get update
|
|
||||||
apt-get install software-properties-common python-software-properties curl git -y
|
# Docker versions
|
||||||
|
COMPOSE_VERSION='1.15.0'
|
||||||
|
DOCKER_VERSION='17.06.2'
|
||||||
|
|
||||||
add-apt-repository ppa:ondrej/php -y
|
add-apt-repository ppa:ondrej/php -y
|
||||||
apt-get update
|
apt-get update -qq
|
||||||
apt-get install php7.1 php7.1-common -y
|
apt-get install -y -qq \
|
||||||
apt-get install php7.1-curl php7.1-xml php7.1-zip php7.1-gd php7.1-mysql php7.1-mbstring -y
|
software-properties-common \
|
||||||
apt-get install apache2-utils -y
|
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
|
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
||||||
|
|
||||||
#Docker install
|
# Install docker and compose
|
||||||
curl -sSL https://get.docker.com/ | sh
|
apt-get update
|
||||||
usermod -aG docker vagrant
|
apt-get install -y -qq docker-ce=${DOCKER_VERSION}~ce-0~ubuntu
|
||||||
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > docker-compose
|
curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
|
||||||
mv docker-compose /usr/local/bin/
|
chmod +x /usr/local/bin/docker-compose
|
||||||
chmod +x /usr/local/bin/docker-compose
|
# Add ubuntu to docker group
|
||||||
|
usermod -a -G docker vagrant
|
||||||
|
|||||||
Reference in New Issue
Block a user