-
Notifications
You must be signed in to change notification settings - Fork 220
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
113 lines (98 loc) · 2 KB
/
docker-bake.hcl
File metadata and controls
113 lines (98 loc) · 2 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
104
105
106
107
108
109
110
111
112
113
variable "GO_VERSION" {
default = null
}
target "_common" {
args = {
GO_VERSION = GO_VERSION
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
}
}
variable "DOCS_FORMATS" {
default = "md,yaml"
}
group default {
targets = [
"all",
]
}
group all {
targets = [
"mcp-gateway",
"mcp-gateway-dind",
"jcat",
"l4proxy",
"l7proxy",
"dns-forwarder",
"validate-docs",
]
}
# Required by docker/metadata-action and docker/bake-action gh actions.
target "docker-metadata-action" {}
target _base {
inherits = ["docker-metadata-action"]
output = ["type=docker"]
platforms = ["linux/arm64", "linux/amd64"]
attest = [
{
type = "provenance",
mode = "max",
},
{
type = "sbom",
}
]
}
target jcat {
inherits = ["_base"]
context = "tools/jcat"
output = ["type=image,name=docker/jcat"]
}
target l4proxy {
inherits = ["_base"]
context = "tools/l4proxy"
output = ["type=image,name=docker/mcp-l4proxy:v1"]
}
target l7proxy {
inherits = ["_base"]
context = "tools/l7proxy"
output = ["type=image,name=docker/mcp-l7proxy:v1"]
}
target dns-forwarder {
inherits = ["_base"]
context = "tools/dns-forwarder"
output = ["type=image,name=docker/mcp-dns-forwarder:v1"]
}
target mcp-gateway {
inherits = ["_base"]
context = "."
target = "mcp-gateway"
output = [
"type=image,name=docker/mcp-gateway",
#"type=image,name=docker/mcp-gateway:v1", last commit pushed with v1 tag: 261fd774d271974ae196b1cbc3acc04aceb3257b
"type=image,name=docker/mcp-gateway:v2",
]
}
target mcp-gateway-dind {
inherits = ["_base"]
context = "."
target = "mcp-gateway-dind"
output = [
"type=image,name=docker/mcp-gateway:dind",
]
}
target "validate-docs" {
inherits = ["_common"]
args = {
DOCS_FORMATS = DOCS_FORMATS
}
target = "docs-validate"
output = ["type=cacheonly"]
}
target "update-docs" {
inherits = ["_common"]
args = {
DOCS_FORMATS = DOCS_FORMATS
}
target = "docs-update"
output = ["./docs/generator/reference"]
}