Graphviz @ Docker

One more article about my Docker images. Graphviz doesn’t seem to have an official Docker image, so I’ve created my own.

The usage (in, e.g. GitHub Actions) is simple:

workflow.yml
name: 'Render something'

on:
  - push

jobs:
  roadmap:
    name: 'file.dot'
    runs-on: ubuntu-latest
    container:
      image: madhead/graphviz:latest
    steps:
      - run: dot -V
      - uses: actions/checkout@v2
      - run: >
          dot
          -Tsvg
          -o dist/file.svg
          src/file.dot

You’ll get your src/file.dot rendered to dist/file.svg.

Have fun with it!