Detailed Video with Voice: https://www.youtube.com/watch?v=MQPRpDBXRyA
Install docker and docker compose on your ec2 machine
yum update -y
amazon-linux-extras install docker
service docker start
usermod -a -G docker ec2-user
chkconfig docker on
Docker Compose:
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 version
Configure ecr access on ec2 machine
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.us-east-1.amazonaws.com
If you have still access problem, attach ecr iam role with your ec2
CI/CD Pipeline on Github Action: https://github.com/shawon100/aws-ec2-docker-python-ci-cd
0 comments:
Post a Comment