03ffb68a84 | ||
---|---|---|
Dockerfile | ||
README.md |
README.md
Docker container for mermaid
mermaid is an open source tool for generating diagram and flowchart from text in a similar manner as markdown. This docker image contains mermaid 7.0.11 and is build on top of the official node 8.8.1 image. Installing the dependency phantomjs is tricky. I chose the solution from jribar.
fixed versions
usage
docker run --rm -v "$PWD":/data:z felixlohmeier/mermaid
typical workflow
- Create your graph in mermaid's live editor
- Copy & paste your graph config in a text editor and save as myflowchart.mmd
- Run docker to create png and/or svg. Example (render svg and png; width of the generated png: 600 pixel):
docker run --rm -v "$PWD":/data:z mermaid -s -p -w 600 myflowchart.mmd