Skip to content

This is a simple Python Flask web application. The app provides system information and a realtime monitoring screen with dials showing CPU, memory, IO and process information.

License

Notifications You must be signed in to change notification settings

Harsh971/Python-System-Monitor-Webapp-CICD

 
 

Repository files navigation

Python Flask - Demo Web Application

This is a simple Python Flask web application. The app provides system information and a realtime monitoring screen with dials showing CPU, memory, IO and process information.

Screenshot

screen

Makefile

In DevOps, a Makefile is a script used by the make tool to automate tasks such as building, testing, and deploying applications. It defines a set of rules and dependencies to ensure that tasks are executed in the correct order, facilitating consistent and repeatable processes across different environments.

help                 💬 This help message
lint                 🔎 Lint & format, will not fix but sets exit code on error
lint-fix             📜 Lint & format, will try to fix errors and modify code
image                🔨 Build container image from Dockerfile
push                 📤 Push container image to registry
run                  🏃 Run the server locally using Python & Flask
deploy               🚀 Deploy to Azure Web App
undeploy             💀 Remove from Azure
test                 🎯 Unit tests for Flask app
test-report          🎯 Unit tests for Flask app (with report output)
test-api             🚦 Run integration API tests, server must be running
clean                🧹 Clean up project

Essential Jenkins Plugins

  • jdk : Eclipse Temurin installer
  • sonar : SonarQube Scanner
  • owasp : OWASP Dependency-Check
  • docker : Docker, Docker Pipeline

Configuration of Plugins

Configure Plugins :

  • Manage Jenkins > Global Tool Configuration

JDK Installation

  • Name : jdk17
  • Install Automatically > Install from adoptium.net > Version 17

SonarQube Scanner installations

  • Name : sonar-scanner
  • Install Automatically > Version (Default)

Dependency-Check installations

  • Name : DP
  • Install Automatically > Install from github.com > dependency-check 6.5.1

Docker installations

  • Name : docker
  • Install Automatically > Version (latest)

Jenkinsfile Prerequisite :

  • for the stage named : Trivy we need to have trivy established into our Environmental System
sudo apt-get install wget apt-transport-https gnupg lsb-release

wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null

echo "deb (signed-by=/usr/share/keyrings/trivy.gpg) https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list

sudo apt-get update

sudo apt-get install trivy -y

Source Credits :

Original Source Code : Click Here
Tutorial Reference : Click Here

Feedback

Your feedback is valuable! If you have suggestions for improving existing content or ideas for new additions, please open an issue or reach out to the repository maintainers. If you have any other feedbacks, you can reach out to us at harsh.thakkar0369@gmail.com

Connect with Me

HarshThakkar971    harsh-thakkar-7764bb1a4    harsh_thakkar09

About

This is a simple Python Flask web application. The app provides system information and a realtime monitoring screen with dials showing CPU, memory, IO and process information.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.8%
  • HTML 16.6%
  • Python 13.3%
  • Makefile 8.4%
  • Bicep 2.1%
  • CSS 1.7%
  • Dockerfile 1.1%