Simple node.js app that servers "hello world"
Great for testing simple deployments to the cloud
npm start
docker build . -t 702193001748.dkr.ecr.eu-west-2.amazonaws.com/node-repo
docker run -p 49200:3000 -d 702193001748.dkr.ecr.eu-west-2.amazonaws.com/node-repo
docker ps
docker login -u AWS -p $(aws ecr get-login-password --region eu-west-2 --profile=dev) 702193001748.dkr.ecr.eu-west-2.amazonaws.com
docker push 702193001748.dkr.ecr.eu-west-2.amazonaws.com/node-repo
Options for Deployment:
-
Deploy in your local gitlab, gitlab-runner terraform container, spin up ec2 instance, and do the installation.
-
github and github actions for deployment, this option deploys the container to Amazon Container registry and runs the workflow pipeline to deploy the application to Amazon Elastic Container Service, each commit to the github repo, causes the container to build and deploy.
-
Using Amazon App Service.
Following Option 2 for deployment
Deployed to repository, repository url
https://github.com/amarjothi/node-hello/blob/main/README.md