https://github.com/nickshine/dot
A Docker image for the Graphviz DOT cli
https://github.com/nickshine/dot
docker dot graphviz
Last synced: 9 months ago
JSON representation
A Docker image for the Graphviz DOT cli
- Host: GitHub
- URL: https://github.com/nickshine/dot
- Owner: nickshine
- License: mit
- Created: 2019-10-12T15:57:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-06T02:11:16.000Z (over 1 year ago)
- Last Synced: 2025-04-02T07:04:10.643Z (about 1 year ago)
- Topics: docker, dot, graphviz
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 29
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# DOT
A Docker image for the [Graphviz] DOT CLI.
https://hub.docker.com/r/nshine/dot
* [Graphviz] - Graph Visualization Software
* [DOT] - Graph Description Language
## Usage
### Generate a PNG
```bash
cat graph.dot | docker run --rm -i nshine/dot > graph.png
```
### Generate Other Outputs
```bash
cat graph.dot | docker run --rm -i nshine/dot dot -Tsvg > graph.svg
```
### Use with Terraform Graph
```bash
terraform graph | docker run --rm -i nshine/dot > graph.png
```
### Use in GitLab CI
```yaml
stages:
- terraform
- graph
terraform:
stage: terraform
image: hashicorp/terraform
entrypoint: [""]
script:
- terraform graph > graph.dot
archive:
paths:
- graph.dot
pages:
stage: graph
image: nshine/dot
dependencies:
- terraform
script:
- mkdir -p public
- dot -Tpng graph.dot > public/graph.png
- echo '
' > public/index.html
archive:
paths:
- public
expire_in: 1h
```
See the Graphviz [Command-line Invocation][cli-docs] docs for full documentation on the dot cli.
[graphviz]:https://graphviz.org
[dot]:https://en.wikipedia.org/wiki/DOT_(graph_description_language)
[cli-docs]:https://www.graphviz.org/doc/info/command.html