Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luisfarzati/docker-mmdc
Easy rendering of Mermaid diagrams.
https://github.com/luisfarzati/docker-mmdc
diagram-generator docker dockerfile mermaid nodejs
Last synced: 5 days ago
JSON representation
Easy rendering of Mermaid diagrams.
- Host: GitHub
- URL: https://github.com/luisfarzati/docker-mmdc
- Owner: luisfarzati
- License: mit
- Created: 2018-02-08T22:15:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T22:18:21.000Z (almost 7 years ago)
- Last Synced: 2024-11-06T02:04:08.756Z (about 2 months ago)
- Topics: diagram-generator, docker, dockerfile, mermaid, nodejs
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## docker-mmdc
Runs [mermaid-cli](https://github.com/mermaidjs/mermaid.cli) in a container for easy rendering of [Mermaid](https://mermaidjs.github.io/) diagrams.
This image is based on [Puppeteer's example](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker) 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
```bash
docker run -i --rm --cap-add=SYS_ADMIN \
-v :/mmdc \
luisfarzati/mmdc {options}
```### Example
```bash
$ tree .
.
├── diagrams
│ ├── model.mmd
│ └── workflow.mmd
└── output2 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
```