Sign inSign up

jlinoff/graphviz

By jlinoff

Updated about 9 years ago

Run graphviz tools like dot without installing graphviz.

Image
0

805

jlinoff/graphviz repository overview

This container allows me to run dot on any platform (including Mac and Windows) using the latest graphviz without having to install it.

Source code: https://github.com/jlinoff/docker-images/tree/master/graphviz.

It assumes that /mnt/share is the location of all files. Use volumes to connect it to your local directory. Here is a very simple example.

$ cat graph1.dot
digraph G {
  n1 -> n2 -> n3
  n1 -> n3
}
$ docker run -it --rm --init -v $(pwd):/mnt/share jlinoff/graphviz pwd
/mnt/share
$ docker run -it --rm --init -v $(pwd):/mnt/share jlinoff/graphviz dot -Tpng graph1.dot -o graph1.png
$ open -a Preview graph1.png  # this is a mac

You can also run man:

$ docker run -it --rm --init -v $(pwd):/mnt/share jlinoff/graphviz man dot

Tag summary

Content type

Image

Digest

Size

106.5 MB

Last updated

about 9 years ago

docker pull jlinoff/graphviz