Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dstockhammer/docker-plantuml
Docker image containing the PlantUML CLI
https://github.com/dstockhammer/docker-plantuml
docker plantuml
Last synced: about 2 months ago
JSON representation
Docker image containing the PlantUML CLI
- Host: GitHub
- URL: https://github.com/dstockhammer/docker-plantuml
- Owner: dstockhammer
- License: mit
- Created: 2020-05-22T10:06:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T05:19:04.000Z (4 months ago)
- Last Synced: 2024-09-09T06:35:57.744Z (4 months ago)
- Topics: docker, plantuml
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/dstockhammer/plantuml
- Size: 201 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-plantuml
Docker image containing the [PlantUML](https://github.com/plantuml/plantuml)
CLI. Looking for a base image with bundled Python and Poetry? Check out
[dstockhammer/docker-plantuml-poetry](https://github.com/dstockhammer/docker-plantuml-poetry)![![Docker Image Version (latest semver)](https://img.shields.io/docker/v/dstockhammer/plantuml?sort=semver)](https://hub.docker.com/r/dstockhammer/plantuml)
[![GitHub last commit](https://img.shields.io/github/last-commit/dstockhammer/docker-plantuml)](https://github.com/dstockhammer/docker-plantuml/commits/master)## Usage
You can either mount the diagrams as volume:
docker run --rm -v $(pwd):/data dstockhammer/plantuml my-diagram.puml
Or pass a single puml file using stdin:
cat my-diagram.puml | docker run --rm -i dstockhammer/plantuml -pipe > my-diagram.png
Alternatively, you can copy the [plantuml.sh](plantuml.sh) script to a location
on your system and execute that. For convenience, here's a script that downloads
the script and puts it into `/usr/local/bin` so that you can simply execute
`plantuml` as if it was installed natively:curl -sL https://raw.githubusercontent.com/dstockhammer/docker-plantuml/master/plantuml.sh > plantuml.sh
sudo mv plantuml.sh /usr/local/bin/plantuml
sudo chmod +x /usr/local/bin/plantuml
plantumlNote: PlantUML has a history of frequent backward-incompatible changes, so to be
safe make sure to replace `latest` in the script above with a version of choice.