This is a simple counter application with a Python/Flask backend and an HTML/CSS/JavaScript frontend.
backend/: Contains the Flask backend application.frontend/: Contains the HTML/CSS/JavaScript frontend application.Jenkinsfile: Jenkins pipeline configuration.
-
Build and run the backend:
cd backend docker build -t counter-backend . docker run -d -p 5555:5555 counter-backend
-
Build and run the frontend:
cd frontend docker build -t counter-frontend . docker run -d -p 80:80 counter-frontend
-
Open your browser and go to
http://localhost.
- Create a new Jenkins pipeline job.
- Configure the pipeline to use the
Jenkinsfilefrom this repository. - Run the pipeline to build both backend and frontend Docker images.