Python 3 Flask service to display equipment and workstation information.
- Python 3.10.8
$ docker build -t docker.lib.umd.edu/library-monitors .
$ docker run -it --rm -p 5000:5000 --env-file=.env --read-only docker.lib.umd.edu/library-monitors
$ docker buildx build . --builder=kube -t docker.lib.umd.edu/library-monitors:VERSION --push
This service exposes the following URLs for monitor display:
Combined Displays:
Legacy Workstation Displays:
- http://localhost:5000/monitors/mckeldin-workstations-legacy
- http://localhost:5000/monitors/stem-workstations-legacy
Legacy Equipment Displays:
- http://localhost:5000/monitors/stem-equipment-legacy
- http://localhost:5000/monitors/mckeldin-equipment-legacy
The combined displays are dependent on the following JSON endpoints:
- http://localhost:5000/api/workstations-stem.json
- http://localhost:5000/api/equipment-stem.json
- http://localhost:5000/api/workstations-mckeldin.json
- http://localhost:5000/api/equipment-mckeldin.json
Root endpoint (just returns {status: ok}
to all requests):
http://localhost:5000/
/ping endpoint (just returns {status: ok}
to all requests):
http://localhost:5000/ping