A tiny Flask app to count the number of times a container has booted.
/api/count/
GET
requests return JSON of the current count{"count": <int>}
POST
requests increment the counter by 1
To build and run locally:
- Build:
docker build -t acmilabs/boot-count:v1 .
- Run:
docker run -it -p 8082:8082 acmilabs/boot-count:v1
You can visit the app in your browser at: http://localhost:8082
Test it by sending a POST
request: curl --location --request POST 'http://localhost:8082/api/count/'