Skip to content

resolves #698 update the description on Docker Hub #737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
May 16, 2021
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
[workflow_dispatch, release]:
branches:
- main
paths:
- DOCKERHUB.md
- .github/workflows/dockerhub-description.yml
jobs:
docker-hub-description:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Docker Hub Description
uses: peter-evans/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: yuzutech/kroki
short-description: ${{ github.event.repository.description }}
readme-filepath: ./DOCKERHUB.md
83 changes: 83 additions & 0 deletions DOCKERHUB.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Kroki

Convert plain text diagrams to images !

Kroki provides a unified API with support for BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag, PacketDiag, RackDiag), BPMN, Bytefield, C4 (with PlantUML), Ditaa, Erd, Excalidraw, GraphViz, Mermaid, Nomnoml, Pikchr, PlantUML, SvgBob, UMLet, Vega, Vega-Lite, WaveDrom... and more to come!

## Getting Started

### Prerequisities

In order to run this container you'll need docker installed.

* [Windows](https://docs.docker.com/docker-for-windows/)
* [OS X](https://docs.docker.com/docker-for-mac/)
* [Linux](https://docs.docker.com/get-started/)

### Usage

See also the [installation](https://docs.kroki.io/kroki/setup/configuration/) docs in the [Kroki documentation](https://docs.kroki.io/)

#### start a kroki instance

$ docker run --name some-kroki -d yuzutech/kroki

This image includes `EXPOSE 8000` (the kroki port), so standard container linking will make it automatically available to the linked containers. If you want to map port 8000 in the container to a port on your host, please use the `--publish` or `-p` flag:

$ docker run -p8000:8000 --name some-kroki -d yuzutech/kroki

#### connect with companion containers

We recommend using docker-composer to connect with companion containers, such as
[kroki-bpmn](https://hub.docker.com/r/yuzutech/kroki-bpmn), [kroki-blockdiag](https://hub.docker.com/r/yuzutech/kroki-blockdiag), [kroki-excalidraw](https://hub.docker.com/r/yuzutech/kroki-excalidraw) and/or [kroki-mermaid](https://hub.docker.com/r/yuzutech/kroki-mermaid)
```
version: "3"
services:
core:
image: yuzutech/kroki
environment:
- KROKI_BLOCKDIAG_HOST=blockdiag
- KROKI_MERMAID_HOST=mermaid
ports:
- "8000:8000"
blockdiag:
image: yuzutech/kroki-blockdiag
ports:
- "8001:8001"
mermaid:
image: yuzutech/kroki-mermaid
ports:
- "8002:8002"
bpmn:
image: yuzutech/kroki-bpmn
ports:
- "8003:8003"
excalidraw:
image: yuzutech/kroki-excalidraw
ports:
- "8004:8004"
```

If you don't want to use `docker-compose`, you can configure the host and port for each companion container using environment variables:

|Container | Host | Port |
|------------------|-----------------------|-----------------------|
|`kroki-blockdiag` |`KROKI_BLOCKDIAG_HOST` |`KROKI_BLOCKDIAG_PORT` |
|`kroki-mermaid` |`KROKI_MERMAID_HOST` |`KROKI_MERMAID_PORT` |
|`kroki-bpmn` |`KROKI_BPMN_HOST` |`KROKI_BPMN_PORT` |
|`kroki-excalidraw`|`KROKI_EXCALIDRAW_HOST`|`KROKI_EXCALIDRAW_PORT`|

For Kubernetes installation follow the description in the [install using Kubernetes](https://docs.kroki.io/kroki/setup/install/#_using_kubernetes).

### Environment Variables
The Kroki image uses several environment variables. While none of the variables are required, they may significantly aid you in using the image.

See the [configuration](https://docs.kroki.io/kroki/setup/configuration/) docs in the [Kroki documentation](https://docs.kroki.io/)

## Versioning

We use [SemVer](https://semver.org/) for versioning.

## License

This project is licensed under the MIT License.