Skip to content

Commit 4764b35

Browse files
authored
fix(agent-runtime): pass BASE_TAG=VERSION so derived images chain off the in-build base (#108)
The derived targets' FROM agent-runtime-base:${BASE_TAG} (default dev) did not match the bake context key ...base:${VERSION}, so bake tried to pull the base from Docker Hub. Set BASE_TAG=VERSION via args.
1 parent 7acd7c0 commit 4764b35

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

docker/agent-runtime/buildx-bake.hcl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ target "claude" {
1717
dockerfile = "docker/agent-runtime/Dockerfile.claude"
1818
platforms = ["linux/amd64"]
1919
tags = ["${REGISTRY}/agent-runtime-claude:${VERSION}"]
20+
args = {
21+
BASE_TAG = "${VERSION}"
22+
}
2023
contexts = {
2124
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
2225
}
@@ -27,6 +30,9 @@ target "codex" {
2730
dockerfile = "docker/agent-runtime/Dockerfile.codex"
2831
platforms = ["linux/amd64"]
2932
tags = ["${REGISTRY}/agent-runtime-codex:${VERSION}"]
33+
args = {
34+
BASE_TAG = "${VERSION}"
35+
}
3036
contexts = {
3137
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
3238
}
@@ -37,6 +43,9 @@ target "gemini" {
3743
dockerfile = "docker/agent-runtime/Dockerfile.gemini"
3844
platforms = ["linux/amd64"]
3945
tags = ["${REGISTRY}/agent-runtime-gemini:${VERSION}"]
46+
args = {
47+
BASE_TAG = "${VERSION}"
48+
}
4049
contexts = {
4150
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
4251
}
@@ -47,6 +56,9 @@ target "acpx" {
4756
dockerfile = "docker/agent-runtime/Dockerfile.acpx"
4857
platforms = ["linux/amd64"]
4958
tags = ["${REGISTRY}/agent-runtime-acpx:${VERSION}"]
59+
args = {
60+
BASE_TAG = "${VERSION}"
61+
}
5062
contexts = {
5163
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
5264
}
@@ -57,6 +69,9 @@ target "opencode" {
5769
dockerfile = "docker/agent-runtime/Dockerfile.opencode"
5870
platforms = ["linux/amd64"]
5971
tags = ["${REGISTRY}/agent-runtime-opencode:${VERSION}"]
72+
args = {
73+
BASE_TAG = "${VERSION}"
74+
}
6075
contexts = {
6176
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
6277
}
@@ -67,6 +82,9 @@ target "pi" {
6782
dockerfile = "docker/agent-runtime/Dockerfile.pi"
6883
platforms = ["linux/amd64"]
6984
tags = ["${REGISTRY}/agent-runtime-pi:${VERSION}"]
85+
args = {
86+
BASE_TAG = "${VERSION}"
87+
}
7088
contexts = {
7189
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
7290
}
@@ -77,6 +95,9 @@ target "hermes" {
7795
dockerfile = "docker/agent-runtime/Dockerfile.hermes"
7896
platforms = ["linux/amd64"]
7997
tags = ["${REGISTRY}/agent-runtime-hermes:${VERSION}"]
98+
args = {
99+
BASE_TAG = "${VERSION}"
100+
}
80101
contexts = {
81102
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
82103
}

0 commit comments

Comments
 (0)