Skip to content

Instantly share code, notes, and snippets.

@quangnhut123
Created September 3, 2020 07:03
Show Gist options
  • Save quangnhut123/d1ff82eefbca71b98026ef33c2e0a09e to your computer and use it in GitHub Desktop.
Save quangnhut123/d1ff82eefbca71b98026ef33c2e0a09e to your computer and use it in GitHub Desktop.
#!/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