Sign inSign up

uklft/flask-hostname

By uklft

Updated over 8 years ago

Cute little flask app that shows the containers hostname. Nice for HA demonstration :-)

Image
0

2.2K

uklft/flask-hostname repository overview

flask-hostname

Uses uklft/flask. Build for arm32v6 and amd64.

Usage

docker run -d -p 5000:5000 uklft/flask-hostname

Hint: Use this for beatiful Loadbalancher monitoring/logging if you have lynx.

while true; do clear; curl -s yourhost:5000 |lynx -stdin -dump; sleep 1; done

Dockerfile

FROM uklft/flask

ADD ./app.py /app/
CMD python3 app.py

Tag summary

Content type

Image

Digest

Size

20.3 MB

Last updated

almost 9 years ago

docker pull uklft/flask-hostname