diff --git a/bpmn/Dockerfile b/bpmn/Dockerfile index 311be19c8..7423e14f1 100644 --- a/bpmn/Dockerfile +++ b/bpmn/Dockerfile @@ -1,12 +1,5 @@ FROM node:18.18-alpine3.18 -LABEL \ - org.opencontainers.image.title="Kroki - BPMN" \ - org.opencontainers.image.description="Kroki provides a unified API supporting multiple diagramming formats, making it easy to create diagrams from textual descriptions." \ - org.opencontainers.image.url="https://kroki.io" \ - org.opencontainers.image.source="https://github.com/yuzutech/kroki" \ - org.opencontainers.image.licenses="MIT" - RUN addgroup -g 1001 kroki && adduser -D -G kroki -u 1001 kroki RUN apk add --quiet --no-cache --update \ diff --git a/diagrams.net/Dockerfile b/diagrams.net/Dockerfile index e2279c21d..9b200c733 100644 --- a/diagrams.net/Dockerfile +++ b/diagrams.net/Dockerfile @@ -1,12 +1,5 @@ FROM node:18.18-alpine3.18 -LABEL \ - org.opencontainers.image.title="Kroki - diagrams.net" \ - org.opencontainers.image.description="Kroki provides a unified API supporting multiple diagramming formats, making it easy to create diagrams from textual descriptions." \ - org.opencontainers.image.url="https://kroki.io" \ - org.opencontainers.image.source="https://github.com/yuzutech/kroki" \ - org.opencontainers.image.licenses="MIT" - RUN addgroup -g 1001 kroki && adduser -D -G kroki -u 1001 kroki RUN apk add --quiet --no-cache --update \ diff --git a/docker-bake.hcl b/docker-bake.hcl index 24e28d800..5b6c8e355 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -6,6 +6,15 @@ group "companion-images" { targets = ["kroki-mermaid", "kroki-bpmn", "kroki-excalidraw", "kroki-diagramsnet"] } +target "oci-labels" { + labels = { + "org.opencontainers.image.description" = "Kroki provides a unified API supporting multiple diagramming formats, making it easy to create diagrams from textual descriptions." + "org.opencontainers.image.url" = "https://kroki.io" + "org.opencontainers.image.source" = "https://github.com/yuzutech/kroki" + "org.opencontainers.image.licenses" = "MIT" + } +} + target "kroki" { context = "server" contexts = { @@ -18,24 +27,44 @@ target "kroki" { } dockerfile = "ops/docker/jdk11-jammy/Dockerfile" tags = ["yuzutech/kroki:${TAG}"] + inherits = ["oci-labels"] + labels = { + "org.opencontainers.image.title" = "Kroki" + } } target "kroki-mermaid" { context = "mermaid" tags = ["yuzutech/kroki-mermaid:${TAG}"] + inherits = ["oci-labels"] + labels = { + "org.opencontainers.image.title" = "Kroki - Mermaid" + } } target "kroki-bpmn" { context = "bpmn" tags = ["yuzutech/kroki-bpmn:${TAG}"] + inherits = ["oci-labels"] + labels = { + "org.opencontainers.image.title" = "Kroki - BPMN" + } } target "kroki-excalidraw" { context = "excalidraw" tags = ["yuzutech/kroki-excalidraw:${TAG}"] + inherits = ["oci-labels"] + labels = { + "org.opencontainers.image.title" = "Kroki - Excalidraw" + } } target "kroki-diagramsnet" { context = "diagrams.net" tags = ["yuzutech/kroki-diagramsnet:${TAG}"] + inherits = ["oci-labels"] + labels = { + "org.opencontainers.image.title" = "Kroki - diagrams.net" + } } diff --git a/excalidraw/Dockerfile b/excalidraw/Dockerfile index 5f690e6ba..ba32d439b 100644 --- a/excalidraw/Dockerfile +++ b/excalidraw/Dockerfile @@ -1,12 +1,5 @@ FROM node:18.18-alpine3.18 -LABEL \ - org.opencontainers.image.title="Kroki - Excalidraw" \ - org.opencontainers.image.description="Kroki provides a unified API supporting multiple diagramming formats, making it easy to create diagrams from textual descriptions." \ - org.opencontainers.image.url="https://kroki.io" \ - org.opencontainers.image.source="https://github.com/yuzutech/kroki" \ - org.opencontainers.image.licenses="MIT" - RUN addgroup -g 1001 kroki && adduser -D -G kroki -u 1001 kroki RUN apk add --quiet --no-cache --update \ diff --git a/mermaid/Dockerfile b/mermaid/Dockerfile index 9ed60d295..957f1b015 100644 --- a/mermaid/Dockerfile +++ b/mermaid/Dockerfile @@ -1,12 +1,5 @@ FROM node:18.18-alpine3.18 -LABEL \ - org.opencontainers.image.title="Kroki - Mermaid" \ - org.opencontainers.image.description="Kroki provides a unified API supporting multiple diagramming formats, making it easy to create diagrams from textual descriptions." \ - org.opencontainers.image.url="https://kroki.io" \ - org.opencontainers.image.source="https://github.com/yuzutech/kroki" \ - org.opencontainers.image.licenses="MIT" - RUN addgroup -g 1001 kroki && adduser -D -G kroki -u 1001 kroki RUN apk add --quiet --no-cache --update \ diff --git a/server/ops/docker/jdk11-jammy/Dockerfile b/server/ops/docker/jdk11-jammy/Dockerfile index ea0c31cff..cb3463b40 100644 --- a/server/ops/docker/jdk11-jammy/Dockerfile +++ b/server/ops/docker/jdk11-jammy/Dockerfile @@ -243,13 +243,6 @@ ARG BLOCKDIAG_VERSION="3.1.0" ARG WIREVIZ_VERSION="0.3.3" ARG TARGETARCH -LABEL \ - org.opencontainers.image.title="Kroki" \ - org.opencontainers.image.description="Kroki provides a unified API supporting multiple diagramming formats, making it easy to create diagrams from textual descriptions." \ - org.opencontainers.image.url="https://kroki.io" \ - org.opencontainers.image.source="https://github.com/yuzutech/kroki" \ - org.opencontainers.image.licenses="MIT" - RUN addgroup --gecos 1000 kroki && adduser --disabled-password --ingroup kroki -u 1000 kroki # For TikZ