-
-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
103 lines (94 loc) · 3.03 KB
/
Copy pathdocker-bake.hcl
File metadata and controls
103 lines (94 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
variable "TAG" {
default = "latest"
}
# Each target must use its own cache directory: concurrent cache exports
# to the same local directory race in the ingest area and fail with
# "error writing layer blob: rename tmp file ... no such file or directory".
variable "CACHE_FROM_DIR" {
default = ""
}
variable "CACHE_TO_DIR" {
default = ""
}
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 = {
nomnoml = "./nomnoml"
vega = "./vega"
dbml = "./dbml"
wavedrom = "./wavedrom"
bytefield = "./bytefield"
tikz = "./tikz"
}
dockerfile = "ops/docker/Dockerfile"
tags = ["yuzutech/kroki:${TAG}"]
cache-from = CACHE_FROM_DIR != "" ? ["type=local,src=${CACHE_FROM_DIR}/kroki"] : []
cache-to = CACHE_TO_DIR != "" ? ["type=local,dest=${CACHE_TO_DIR}/kroki"] : []
inherits = ["oci-labels"]
labels = {
"org.opencontainers.image.title" = "Kroki"
}
}
target "kroki-mermaid" {
context = "mermaid"
contexts = {
lib = "./lib/browser-instance"
}
tags = ["yuzutech/kroki-mermaid:${TAG}"]
cache-from = CACHE_FROM_DIR != "" ? ["type=local,src=${CACHE_FROM_DIR}/mermaid"] : []
cache-to = CACHE_TO_DIR != "" ? ["type=local,dest=${CACHE_TO_DIR}/mermaid"] : []
inherits = ["oci-labels"]
labels = {
"org.opencontainers.image.title" = "Kroki - Mermaid"
}
}
target "kroki-bpmn" {
context = "bpmn"
contexts = {
lib = "./lib/browser-instance"
}
tags = ["yuzutech/kroki-bpmn:${TAG}"]
cache-from = CACHE_FROM_DIR != "" ? ["type=local,src=${CACHE_FROM_DIR}/bpmn"] : []
cache-to = CACHE_TO_DIR != "" ? ["type=local,dest=${CACHE_TO_DIR}/bpmn"] : []
inherits = ["oci-labels"]
labels = {
"org.opencontainers.image.title" = "Kroki - BPMN"
}
}
target "kroki-excalidraw" {
context = "excalidraw"
contexts = {
lib = "./lib/browser-instance"
}
tags = ["yuzutech/kroki-excalidraw:${TAG}"]
cache-from = CACHE_FROM_DIR != "" ? ["type=local,src=${CACHE_FROM_DIR}/excalidraw"] : []
cache-to = CACHE_TO_DIR != "" ? ["type=local,dest=${CACHE_TO_DIR}/excalidraw"] : []
inherits = ["oci-labels"]
labels = {
"org.opencontainers.image.title" = "Kroki - Excalidraw"
}
}
target "kroki-diagramsnet" {
context = "diagrams.net"
contexts = {
lib = "./lib/browser-instance"
}
tags = ["yuzutech/kroki-diagramsnet:${TAG}"]
cache-from = CACHE_FROM_DIR != "" ? ["type=local,src=${CACHE_FROM_DIR}/diagramsnet"] : []
cache-to = CACHE_TO_DIR != "" ? ["type=local,dest=${CACHE_TO_DIR}/diagramsnet"] : []
inherits = ["oci-labels"]
labels = {
"org.opencontainers.image.title" = "Kroki - diagrams.net"
}
}