Created
November 21, 2018 00:38
-
-
Save drmikecrowe/dd5631da65894eb3c80ee011ec8a6447 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
set -x | |
sudo apt-get update | |
sudo apt install git python2.7 build-essential python-virtualenv python-pip python-dev libcurl4-gnutls-dev libgnutls28-dev mysql-client awscli phantomjs | |
# Environment variables you need to set so you don't have to edit the script below. | |
export DOCKER_CHANNEL=stable | |
# Update the apt package index. | |
sudo apt-get update | |
# Install packages to allow apt to use a repository over HTTPS. | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
# Add Docker's official GPG key. | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# Verify the fingerprint. | |
sudo apt-key fingerprint 0EBFCD88 | |
# Pick the release channel. | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
${DOCKER_CHANNEL}" | |
# Update the apt package index. | |
sudo apt-get update | |
# Install the latest version of Docker CE. | |
sudo apt-get install -y docker-ce | |
# Allow your user to access the Docker CLI without needing root. | |
sudo usermod -aG docker $USER | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment