Docker container with Alpine Linux, Java and PlantUML.
PlantUML is a Java program which generates UML diagrams from DSL-code.
Pull from the Docker Hub:
$ docker pull miy4/plantumlBuild from source:
$ git clone https://github.com/miy4/docker-plantuml.git
$ cd docker-plantuml
$ docker build -t miy4/plantuml .$ docker run -v ${PWD}:/work -w /work --rm -t miy4/plantuml [PLANTUML OPTIONS and ARGUMENTS]or
$ run-plantuml [PLANTUML OPTIONS and ARGUMENTS]docker run and run-plantuml accept and pass a set of parameters to PlantUML CLI.
See docker run miy4/plantuml -h or run-plantuml -h output for more details.
You can explicitly set the UID and GID of artifacts using the environment variables PUML_UID and PUML_GID.
In the following run example, PlantUML generates sequence_diagram.png owned by the user with UID 1000 and GID 1000.
$ docker run -e PUML_UID=1000 -e PUML_GID=1000 -v ${PWD}:/work -w /work --rm -t miy4/plantuml -tpng sequence_diagram.umlIf you don't use PUML_UID and PUML_GID, PlantUML generates the files to have the same UID and GID as the owner of the working directory given by -w, --workdir.
$ run-plantuml -tpng -charset utf-8 sequence_diagram.umlMIT