Created
September 3, 2020 07:03
-
-
Save quangnhut123/d1ff82eefbca71b98026ef33c2e0a09e to your computer and use it in GitHub Desktop.
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 CE Install | |
sudo yum update -y | |
sudo yum install -y jq | |
sudo amazon-linux-extras install -y docker | |
sudo service docker start | |
sudo usermod -a -G docker ec2-user | |
# Make docker auto-start | |
sudo chkconfig docker on | |
docker -v | |
# docker-compose install | |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker-compose -v | |
# aws ecs cli install | |
sudo curl -Lo /usr/local/bin/ecs-cli https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-linux-amd64-latest | |
gpg --keyserver hkp://keys.gnupg.net --recv BCE9D9A42D51784F | |
curl -Lo ecs-cli.asc https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-linux-amd64-latest.asc | |
gpg --verify ecs-cli.asc /usr/local/bin/ecs-cli | |
sudo chmod +x /usr/local/bin/ecs-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment