Skip to content

This project displays CICD to update the docker image on Dockerhub, and also deploy updates to the application running via Elastic Beanstalk. Important files for this project are those inside workflow, Dockerfile,

Notifications You must be signed in to change notification settings

adasMatt/twogeCICD

 
 

Repository files navigation

Twoge CICD by Matt

Project Twoge

Twoge is a social media platform dedicated solely to tweets about Dodge. This application is built using Flask, SQLAlchemy, and PostgreSQL (see the rest of the original Twoge readme.md at https://github.com/chandradeoarya/twoge)...

Project Twoge

App launch and CICD Implementation

Before CICD, the application is brought up and running via:

  1. Terraform technology to create the AWS RDS instance (not included in this repo, but see Other Things topic below for more information on how to set that up)
  2. Dockerfile
  3. Elastic Beanstalk CLI commands:
    • eb init
    • eb create twoge-app-server --single
    • eb setenv SQLALCHEMY_DATABASE_URI=postgresql://user:password@db-host:5432/twogedbtf
    • eb deploy
  4. Now the app is running and it is CICD's time to shine:
    • Choose a branch for updates to be applied to image and infrastructure when pushed to repository
    • Define jobs for unit testing (ideally, but unit tests are not included in this example), image updates, and application/infrastructure updates

Other things

The creation of the AWS RDS instance was done using Terraform code as outlined in a few examples, changing and adding as necessary:

About

This project displays CICD to update the docker image on Dockerhub, and also deploy updates to the application running via Elastic Beanstalk. Important files for this project are those inside workflow, Dockerfile,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 65.3%
  • Python 27.5%
  • Dockerfile 6.8%
  • CSS 0.4%