Last active
June 9, 2016 06:54
-
-
Save lmduc/632d28303ec19961e8f15db7036fcafc 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
echo "==================UPDATE\n" | |
sudo apt-get update | |
echo "==================INSTALL DOCKER\n" | |
curl -sSL https://get.docker.com/ | sh | |
sudo usermod -aG docker $(whoami) | |
echo "==================INSTALL LIBS\n" | |
sudo apt-get install -y python-pip python-dev build-essential | |
echo "==================INSTALL PIP\n" | |
sudo pip install --upgrade pip | |
echo "==================UPGRADE VIRTUALENV\n" | |
sudo pip install --upgrade virtualenv | |
echo "==================INSTALL DOCKER-COMPOSE\n" | |
sudo pip install docker-compose | |
echo "Please logout to take effect" | |
echo "docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap" | |
echo "IP=$(hostname -i | awk '{ print $1}')" | |
echo "docker run -d -p 4000:4000 swarm manage -H :4000 --replication --advertise $IP:4000 consul://$IP:8500" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment