Last active
September 11, 2017 23:03
-
-
Save wicaksana/ef1f406684c00b82707be1f799440292 to your computer and use it in GitHub Desktop.
Provisioning EC2 machine for my typical needs
This file contains 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
#!/bin/bash | |
# Docker | |
# taken from https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04 | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce | |
sudo usermod -aG docker ${USER} | |
# Docker compose; change to the latest version you want to install. | |
# Check it out in https://github.com/docker/compose/releases | |
curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > docker-compose | |
sudo mv docker-compose /usr/local/bin/ | |
sudo chmod +x /usr/local/bin/docker-compose | |
# Pip for Python3 | |
sudo apt install python3-pip | |
apt-get install python3-venv | |
pip3 install --upgrade pip | |
export LC_ALL="en_US.UTF-8" | |
export LC_CTYPE="en_US.UTF-8" | |
sudo dpkg-reconfigure locales |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment