Skip to content

yyosefi/node-docker

Repository files navigation

node-docker is a simple dockerized nodejs app

This is a based on the following articles: https://sommershurbaji.medium.com/deploying-a-docker-container-to-aws-with-elastic-beanstalk-28adfd6e7e95

https://sommershurbaji.medium.com/continuous-delivery-with-aws-elastic-beanstalk-and-travis-ci-2dd54754965f

https://medium.com/swlh/continous-integration-using-travis-nodejs-8c608662a0cd

https://docs.travis-ci.com/user/docker/

https://docs.docker.com/language/nodejs/

with the following added CI Flow:

When a version is pushed to GitHub -> Travis-CI runs:

  • Test
  • Package as a Docker Image and push to Elastic Beanstalk

Below are the instructions for running the whole process:

  1. Create an AWS user with programmatic access to Elastic beanstalk using the procedure in this article: https://medium.com/@andrew.bestbier/how-to-create-an-aws-user-for-a-ci-cd-service-to-use-when-deploying-to-elastic-beanstalk-a9dd0877fd6f

  2. Use this guide to create an Elastic Beanstalk Application and Docker enabled environment to deploy the project into: https://medium.com/@andrew.bestbier/how-to-create-an-elastic-beanstalk-application-8431e7960bad.

  3. Commit project files and Push to GitHub

  4. Sign with your GitHub account into https://travis-ci.com/

  5. Add a new project and choose 'settings' next to the node-docker repository.

  6. Add the following environment variables: AWS_ACCESS_KEY_ID -> your access ID AWS_SECRET_ACCESS_KEY -> your secret key

  7. Edit the .travis.yml file in the project root folder and change the region, app, env, bucket_name and bucket_path with your relevant details as created in step 2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published