Fix several issues in Vagrant provisioning (#1046)

* Fixes to Vagrantfile
This commit is contained in:
Joshua Dugie
2019-09-08 17:04:48 +00:00
committed by Kevin Chung
parent 7a7595cf03
commit cee6fe3593
3 changed files with 18 additions and 9 deletions

38
scripts/install_docker.sh Normal file
View File

@@ -0,0 +1,38 @@
#!/bin/bash
# Script to install docker in Debian Guest VM
# per: https://docs.docker.com/engine/installation/linux/debian/#install-docker-ce
# Install packages to allow apt to use a repository over HTTPS
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
python-pip \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
# Add Dockers official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Set up the stable repository.
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Update the apt package index
sudo apt-get update
# Install the latest version of Docker
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce
# Add user to the docker group
# Warning: The docker group grants privileges equivalent to the root user.
sudo usermod -aG docker ${USER}
# Configure Docker to start on boot
sudo systemctl enable docker
# Install docker-compose
pip install docker-compose