Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ec2
- export AWS_ACCOUNT_ID=<numer-konta-aws>
- sudo yum install docker
- sudo service docker status
- sudo service docker start
- sudo usermod -a -G docker ec2-user
- sudo chmod 666 /var/run/docker.sock
- docker run hello-world
- 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
- docker pull $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/backend:latest
- docker pull $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/frontend:latest
- docker image ls
- wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)
- chmod -v +x docker-compose-*
- sudo mv docker-compose-* /usr/local/bin/docker-compose
- docker-compose --version
- wget https://raw.githubusercontent.com/Panda-Academy-Core-2-0/App_of_apps/final/docker-compose.yml
- cat docker-compose.yml
- export FRONTEND_IMAGE="$AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/frontend:latest"
- export BACKEND_IMAGE="$AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/backend:latest"
- docker-compose up -d
- docker ps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement