- Build the local image
docker build -t diagrams .- Write your diagram in
diagram.pyand then run the following to generate it.
docker run --rm -it -v "${PWD}":/diagram -w /diagram diagrams python diagram.pyThis is using https://github.com/mingrammer/diagrams
Some more documentation here: https://diagrams.mingrammer.com/
Some notes on this: https://ledakis.com/blog/2020/7/diagrams-as-code-using-docker-diagrampy/