Skip to content

Commit

Permalink
fix: add oci labels to other images (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
MindTooth authored Jan 13, 2024
1 parent 25a8ccf commit 77aba18
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
29 changes: 29 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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"
}
}
7 changes: 0 additions & 7 deletions server/ops/docker/jdk11-jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77aba18

Please sign in to comment.