-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
101 lines (86 loc) · 2.52 KB
/
Copy pathdocker-bake.hcl
File metadata and controls
101 lines (86 loc) · 2.52 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
# =============================================================================
# docker-bake.hcl — Parallel image builds for k3d local development
# =============================================================================
# Usage:
# docker buildx bake # Build all services in parallel
# docker buildx bake api # Build a single service
# docker buildx bake api portal judge # Build specific services
#
# Override registry:
# REGISTRY=my-registry:5050 docker buildx bake
# =============================================================================
variable "REGISTRY" {
default = "scope-0-registry.localhost:5050"
}
# Worker version args — sourced from env (k3d-build.sh exports these from versions.env)
variable "COPILOT_CLI_VERSION" {
default = ""
}
variable "CLAUDE_CODE_ACP_VERSION" {
default = ""
}
variable "CLAUDE_AGENT_SDK_VERSION" {
default = ""
}
group "default" {
targets = [
"api",
"judge",
"portal",
"token-manager",
"scheduler",
"gateway",
"coder-acp-copilot",
"coder-acp-claude-code",
]
}
# --- Application services ---
target "api" {
dockerfile = "apps/api/Dockerfile"
context = "."
tags = ["${REGISTRY}/scoped/api:latest"]
}
target "judge" {
dockerfile = "apps/judge/Dockerfile"
context = "."
tags = ["${REGISTRY}/scoped/judge:latest"]
}
target "portal" {
dockerfile = "apps/portal/Dockerfile"
context = "."
tags = ["${REGISTRY}/scoped/portal:latest"]
}
target "token-manager" {
dockerfile = "apps/token-manager/Dockerfile"
context = "."
tags = ["${REGISTRY}/scoped/token-manager:latest"]
}
target "scheduler" {
dockerfile = "apps/scheduler/Dockerfile"
context = "."
tags = ["${REGISTRY}/scoped/scheduler:latest"]
}
target "gateway" {
dockerfile = "Dockerfile"
context = "apps/gateway"
target = "runtime"
tags = ["${REGISTRY}/scoped/gateway:latest"]
}
# --- Worker services ---
target "coder-acp-copilot" {
dockerfile = "apps/workers/coder-acp-copilot/Dockerfile"
context = "."
tags = ["${REGISTRY}/scoped/coder-acp-copilot:latest"]
args = {
COPILOT_CLI_VERSION = "${COPILOT_CLI_VERSION}"
}
}
target "coder-acp-claude-code" {
dockerfile = "apps/workers/coder-acp-claude-code/Dockerfile"
context = "."
tags = ["${REGISTRY}/scoped/coder-acp-claude-code:latest"]
args = {
CLAUDE_CODE_ACP_VERSION = "${CLAUDE_CODE_ACP_VERSION}"
CLAUDE_AGENT_SDK_VERSION = "${CLAUDE_AGENT_SDK_VERSION}"
}
}