https://github.com/vassilevsky/mmdc
Mermaid CLI - Docker image
https://github.com/vassilevsky/mmdc
diagrams docker-image dsl mermaid mermaidjs text-based
Last synced: over 1 year ago
JSON representation
Mermaid CLI - Docker image
- Host: GitHub
- URL: https://github.com/vassilevsky/mmdc
- Owner: vassilevsky
- License: mit
- Created: 2018-09-11T12:02:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-11T18:03:19.000Z (almost 8 years ago)
- Last Synced: 2025-01-22T08:35:20.122Z (over 1 year ago)
- Topics: diagrams, docker-image, dsl, mermaid, mermaidjs, text-based
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mermaid CLI in a Docker container
This is the [Docker image](https://hub.docker.com/r/vassilevsky/mmdc/)
with [Mermaid CLI](https://github.com/mermaidjs/mermaid.cli).
You can use it to render Mermaid text diagrams to images without installing Node.js to your computer :)
## Usage
Run image `vassilevsky/mmdc` and mount current directory at `/work` inside the container:
docker run -v ${PWD}:/work vassilevsky/mmdc
It will run the `mmdc` binary from the official `mermaid.cli` package.
Render a source file in Mermaid format into a 4K image:
docker run -v ${PWD}:/work vassilevsky/mmdc -i diagram.mmd -o diagram.png -w 3840 -H 2160
Pull requests with improvements are welcome :)
[](https://funbox.ru)