Open kietdev1 opened 1 year ago
SSH_HOST = Public IP EC2 https://stackoverflow.com/questions/6394762/how-do-i-set-up-ssh-access-for-an-amazon-ec2-instance
Download by URL sudo curl -O -L URL
Unable to build sequentially anymore with docker compose build https://github.com/docker/compose/issues/9341
DOCKER_BUILDKIT=0 docker-compose build https://stackoverflow.com/questions/46295806/how-to-control-docker-compose-build-order
Docker Hub - CI will build + publish and CD will pull and run https://docs.docker.com/build/ci/github-actions/
External Services
Ethereal https://ethereal.email
Redis Cloud https://app.redislabs.com/#/databases
RabbitMQ Cloud AMQP https://www.cloudamqp.com
Launch an instance using parameters from an existing instance https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/launch-more-like-this.html
Install Docker https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/run-an-asp-net-core-web-api-docker-container-on-an-amazon-ec2-linux-instance.html https://stackoverflow.com/questions/70599793/docker-compose-not-recognized-when-using-sudo sudo yum install -y docker sudo service docker start
Install Docker compose https://docs.docker.com/compose/install/linux/
Upload Folder and File scp -i key.pem docker-compose.development.yml instanceName:/home/ec2-user -- Rename sudo mv docker-compose.development.yml docker-compose.yml
scp -i key.pem -r envoy instanceName:/home/ec2-user
https://stackoverflow.com/questions/9270734/ssh-permissions-are-too-open Install Docker Centos https://docs.docker.com/engine/install/centos/ Install Docker Compose https://docs.docker.com/compose/install/linux/ sudo yum install -y nano
sudo docker compose down && sudo docker system prune --all --volumes --force && sudo docker compose -f "docker-compose.yml" up -d envoy portal identity
docker compose pull portal && docker compose up -d --no-deps --build portal
CI/ CD Backend Deploy to EC2 https://zellwk.com/blog/github-actions-deploy/