A simple web app for testing against changes within the Software Development Life Cycle.
The Web-App is a Streamlit Dashboard that is connected to an SQLite Database that holds a subset of the records of the Town Survey Marks situated in the Cape Town region. (The Data is courtsy of the City of Cape Town's Open Data Portal.) The web app makes it possible for user to select a TSM from a dropdown menu or if they know the TSM ID, they can search for it, and the app will automatically zoom in on the map to display it's location.
git clone https://github.com/kartoza/devops-app
cd devops-app
Make the build bash script executable:
chmod +x build_image.sh
Run the script:
./build_image.sh
docker run -d --name kartoza_devops_app_container -p 8501:8501 kartoza-devops-app
docker ps
You should find a container named kartoza_devops_app_container
in the running containers list. It's healthcheck should be healthy
.
Go to a browser and access the app via this url:
http://localhost:8501/
You should be able to see the web-app interface as such:
- A health check for the web-app container has been set up in in the Dockerfile to automatically check the health of the container. The health check makes a curl request internally so see if the Streamlit app is still accessible via ists local access url.