Basic web app made in Python using flask as web framework and psutil and uuid libraries to get system information.
- Clone the repository:
git clone https://github.com/matandomuertos/webapp-python.git
- Navigate to the main folder and install requirements:
cd webapp-python/app && pip install -r requirements.txt
- Run the app
python main.py
- Go to
http://127.0.0.1:8080
in your prefered browser to use the app
- Install Docker
- Run
docker run -p 8080:8080 -d ghcr.io/matandomuertos/webapp-python
in your terminal - Go to
http://127.0.0.1:8080
in your prefered browser to use the app
The helm chart is released to ghcr.io automatically by Github actions.
- Add the repo to helm
helm repo add webapp-python https://matandomuertos.github.io/webapp-python
- Update the repos
helm repo update
- Deploy to k8s
helm install webapp webapp-python/helm
If you want to customize the deployment, please check the values file.
- Test helm deployment:
helm test webapp
- Uninstall deployment:
helm uninstall webapp
The Docker image is build and pushed to ghcr.io automatically by Github actions.
- Clone the repository:
git clone https://github.com/matandomuertos/webapp-python.git
- Navigate to the main folder:
cd webapp-python/app
- Build the image:
docker build -t webapp-python .
http://127.0.0.1:8080/-/health
shows system information.
{"architecture":"aarch64","health":"healthy","hostname":"webapp-python","mac-address":"01:41:wx:14:00:03","platform":"Linux","platform-release":"5.10.104-linuxkit","platform-version":"#1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022","processor":"","ram":"12 GB"}
http://127.0.0.1:8080/api/echo?text=hello
shows the input text as key.
{"key":"hello"}