Last active
June 24, 2020 10:35
-
-
Save imedadel/3818249d6fb627a9e1037582aaa1bc71 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 '> Updating packages' | |
sudo yum update -y | |
echo '> Installing Git' | |
sudo yum install git -y | |
echo '> Installing Docker' | |
sudo amazon-linux-extras install docker | |
sudo usermod -a -G docker ec2-user | |
sudo chkconfig docker on | |
echo '> Installing Docker Compose' | |
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4) | |
sudo curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
echo '> Rebooting' | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run it using:
sh <(curl -Ls https://gist.githubusercontent.com/ImedAdel/3818249d6fb627a9e1037582aaa1bc71/raw/192d27b9cc5444b7139e5be1e9f9d9f405017219/prepare-ec2.sh)