Sign inSign up

xaratustrah/flask_plot_docker

By xaratustrah

•Updated about 8 years ago

A web app plotter

Image
0

894

xaratustrah/flask_plot_docker repository overview

⁠flask_plot_docker

This is the dockerized version of this repository⁠. I have learned a lot and used code snippets from Patrick Kennedy's blog post⁠ and Maksym Sladkov' project⁠. Patrick has many other blog posts the topic of docker.

For this project, I have tried to maintain the recommanded directory structure on flask's official docs⁠, mixed with suggestions in above posts.

The above posts use docker-compose up --build -d. While this is still OK, meanwhile the official docker docs recommend using the new syntax docker stack deploy -c docker-compose.yml somestackname which is swarm compatible. So I tried to change the syntax accordingly.

For completeness, a setup.py file has been provided. In order to avoid duplicating, including the requirements.txt in setup.py was inspired by Karol Kuczmarski's blog post⁠.

You can run this code in several ways. At the top level directory run:

python flask_plot/run.py

or you can install using pip. But that is not the whole idea. Starting using docker-compose:

docker-compose up --build -d

alternatively you can use a swarm by using docker stack deploy command which can be found in the deploy.sh script.

The server is found on localhost:8001⁠.

Tag summary

Content type

Image

Digest

Size

292.6 MB

Last updated

about 8 years ago

docker pull xaratustrah/flask_plot_docker