bencuk/python-demoapp
Simple demo Python Flask web app for deploying to Azure, Docker etc
2.6K
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.
The app has been designed with cloud native demos & containers in mind, in order to provide a real working application for deployment, something more than "hello-world" but with the minimum of pre-reqs. It is not intended as a complete example of a fully functioning architecture or complex software design.
Typical uses would be deployment to Kubernetes, demos of Docker, CI/CD (build pipelines are provided), deployment to cloud (Azure) monitoring, auto-scaling
Python 3.6+ is required and has been tested on Windows and Linux (Ubuntu 18.04)
Simply run with python run.py
the script should start the app, and set Flask listening on port 5000, you can change the port with the environmental variable PORT
.
Go to http://localhost:5000
to view the app.
The image is publicly available on Dockerhub here so running it in Docker is simple docker run -d -p 5000:5000 bencuk/python-demoapp
The container runs on Debian Linux and is configured to use the latest version of Python (3.6.2 at the time of writing)
If you want to deploy to an Azure Container Instance, a working template & quick deploy button is provided in the azure deploy directory
If you want to deploy to an Azure Web App for Containers (aka Linux Web App), a template is provided in the azure deploy directory
Just don't
docker pull bencuk/python-demoapp