Message in a Flask is a docker image which show environment information and environment variables.
- It can show you the local Hostname and local IP address of the container.
- Show SQL connection, hostname, port, identity and simple query
- Show SaaS and PaaS services available
Terminal:
git clone https://github.com/oscillate123/message-in-a-flask.git
docker build --rm -t mia:latest ./message-in-a-flask
docker image prune -f
docker run --name mia -d --rm -it -p 5000:5000 thlab/mia:latest
or in a bash script:
cat >> build_and_run.sh
#!/bin/bash
docker kill mia #kill existing container if any
docker build --rm -t thlab/mia:latest /path/to/message-in-a-flask #
docker image prune -f
docker run --name mia -d --rm -it -p 5000:5000 thlab/mia:latest
then run bash /path/to/build_and_run.sh
everytime you change the code
export FLASK_APP=flask-app
export FLASK_ENV=development
export FLASK_DEBUG=1
flask run --host=0.0.0.0
- https://flask.palletsprojects.com/en/1.1.x/tutorial/layout/
- https://flask.palletsprojects.com/en/1.1.x/quickstart/