Skip to content

Tripti-TD/django-notes-app-DevOps

 
 

Repository files navigation

Simple Notes App

This is a simple notes app built with React and Django.

Requirements

  1. Python 3.9
  2. Node.js
  3. React

A Django-based notes app DevOps project on Jenkins declarative groovy pipeline deployed on AWS ec2 instance. Continuous integration and continuous deployment are done, building a groovy syntax pipeline to automate and release the application. Docker is used to containerize the app image and docker-compose to isolate the environment as it can be reproduced anywhere. GitHub is used as source code management to store the code.

The following are the steps:

 Launch an Ec2 instance of t2.micro type and use the Ubuntu image.

Django Notes-app-pipeline

 Connect the server and update and install Docker, Java, and Jenkins.

Django Notes-app-pipeline (1)

Django Notes-app-pipeline (2)

 Add docker to user group, user is ubuntu.

Django Notes-app-pipeline (3)

 Add docker to user group so that Jenkins can use.

Django Notes-app-pipeline (4)

 Add a new pipeline item named as note-app-cicd-pipeline  Hit check on Github project, and enter the URL of the Github repo.

Django Notes-app-pipeline (5)

 In build trigger hit GitHub hook trigger GitScm polling. Django Notes-app-pipeline (6)

 In pipeline choose pipeline script from SCM (Git) enter the URL and Brach of the repo and enter declarative groovy pipeline script file in the Script path

Django Notes-app-pipeline (7)

Django Notes-app-pipeline (8)

 Save and apply, Build the pipeline.

Django Notes-app-pipeline (9)

 You can see in your Docker-Hub account the new image is built.

Django Notes-app-pipeline (10)

 You can also check your terminal to run “Docker images” and “docker ps” Django Notes-app-pipeline (11)

 Open the 8000 port of the instance and see the notes app.

Django Notes-app-pipeline (12)

Please excuse if something is missed.


About

Declarative Jenkins script CI/CD pipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 48.3%
  • CSS 47.0%
  • Python 4.0%
  • Other 0.7%