Coder Social home page Coder Social logo

plantuml-docker's Introduction

plantuml-docker

Heavily inspired by the original Docker image, this Docker image will run a plantUML server for you.

How to build

docker build --tag plantuml-server .

How to run

docker run -d -p 8080:8080 plantuml-server

The plantuml-server is now listening on port 8080 and available using the following URL:

http://localhost:8080/

How to configure

Setting the environment variable JETTY_CONTEXTPATH allows you to add a prefix to the URL.

Example

docker run -d -p 8080:8080 -e JETTY_CONTEXTPATH=/plantuml plantuml-server

The plantuml-server is now listening on port 8080 and available using the following URL:

http://localhost:8080/plantuml

How to use

The plantuml-server description provides a detailled explanation how to use the plantuml-server.

How to serve plantuml images for GitHub

The examples folder contains an example showing you how to use the plantUML-server to provide images for your GitHub Markdown files.

First get the raw URL of your plantUML file (1):

Go to your plantUML server, modify the below shown plantUML diagram with the raw URL of your plantUML file on GitHub (1):

Press the 'Submit query' button below the input field (2) and finally copy the generated plantUML server URL (3). This URL just points the plantURL server back to your plantUML file on GitHub and doesn't change as long as you don't change the name or location of the file.

Insert this plantUML server URL into your Markdown file (1):

Replacing the png part (1) in your plantUML server URL with svg (2) renders your graph as SVG, but to get this also working on GitHub you have to sanitize the SVG first using the GitHub sanitizer by adding &sanitize=1 (3) do your SVG URL.

plantuml-docker's People

Contributors

piccobit avatar

Stargazers

Marcel M. Otte avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.