This docker image contains mermaid 7.0.11 and is build on top of the official node 8.8.1 image.
Go to file
Felix Lohmeier d0432bd562 initial commit 2017-10-29 17:55:33 +01:00
Dockerfile initial commit 2017-10-29 17:55:33 +01:00
README.md initial commit 2017-10-29 17:55:33 +01:00

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

  1. Create your graph in mermaid's live editor
  2. Copy & paste your graph config in a text editor and save as myflowchart.mmd
  3. 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