Sign inSign up

jfyne/mmdc

By jfyne

Updated almost 6 years ago

Runs mermaid-cli in a container for easy rendering of Mermaid diagrams.

Image
0

5.1K

jfyne/mmdc repository overview

docker-mmdc

Runs mermaid-cli in a container for easy rendering of Mermaid diagrams.

This image is based on Puppeteer's example with a few alterations (it doesn't download language fonts and has an entrypoint suited to mermaid-cli).

Versions

Images will be tagged with the same version of the containing mermaid-cli.

Usage
docker run -i --rm --cap-add=SYS_ADMIN \
    -v <dir>:/mmdc \
    luisfarzati/mmdc {options}
Example
$ tree .
.
├── diagrams
│   ├── model.mmd
│   └── workflow.mmd
└── output

2 directories, 2 files

$ docker run -i --rm --cap-add=SYS_ADMIN \
    -v `pwd`:/mmdc \
    jfyne/mmdc \
         -i ./diagrams/workflow.mmd \
         -o ./output/workflow.png \
         -t forest

Tag summary

Content type

Image

Digest

Size

458 MB

Last updated

almost 6 years ago

docker pull jfyne/mmdc