Skip to content

Easy rendering of Mermaid diagrams.

License

Notifications You must be signed in to change notification settings

luisfarzati/docker-mmdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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 \
    luisfarzati/mmdc \
         -i ./diagrams/workflow.mmd \
         -o ./output/workflow.png \
         -t forest

Releases

No releases published

Packages

No packages published