Skip to content

A tiny Flask app to count the number of times a device has booted

License

Notifications You must be signed in to change notification settings

ACMILabs/boot-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boot count

A tiny Flask app to count the number of times a container has booted.

API endpoints

/api/count/

  • GET requests return JSON of the current count {"count": <int>}
  • POST requests increment the counter by 1

Development

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/'

About

A tiny Flask app to count the number of times a device has booted

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published