This docker container holds a full-fledged plantuml distribution with PDF-export support included.
This image works great for exporting plantuml diagrams without installing java, graphviz and other dependencies, making it the perfect fit for running plantuml within your CI pipeline.
The container's entrypoint command runs plantuml with stdin/stdout piping enabled:
java -jar plantuml.jar -p
When run without any more arguments, the docker image will output the diagram as svg:
cat diagram.puml | docker run --rm -i aplr/plantuml > diagram.svg
If you want to output the diagram as PDF, you have to set the output type to -tpdf
:
cat diagram.puml | docker run --rm -i aplr/plantuml -tpdf > diagram.pdf