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.
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
jdk
: Eclipse Temurin installersonar
: SonarQube Scannerowasp
: OWASP Dependency-Checkdocker
: Docker, Docker Pipeline
- Manage Jenkins > Global Tool Configuration
- Name : jdk17
- Install Automatically > Install from adoptium.net > Version 17
- Name : sonar-scanner
- Install Automatically > Version (Default)
- Name : DP
- Install Automatically > Install from github.com > dependency-check 6.5.1
- Name : docker
- Install Automatically > Version (latest)
- 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
Original Source Code : Click Here
Tutorial Reference : Click Here
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