Commit 6366cca
Build Java polyglot CLI E2E image via local docker daemon
The CLI E2E Java polyglot image extends the polyglot base via
`FROM aspire-e2e-polyglot-base`, which only exists in the local docker
daemon (it is loaded there via the `--load` option of the previous
buildx build). The docker-container buildx driver cannot see local
daemon images, so any attempt to build the Java image through the
shared `cli-e2e-builder` instance fails with `pull access denied for
docker.io/library/aspire-e2e-polyglot-base`.
Branch the `build_image` helper on the cache scope:
- non-empty scope → cached buildx docker-container path
- empty scope → daemon-driven `DOCKER_BUILDKIT=1 docker build`
Route the Java image through `build_with_mirror_retry` with an empty
cache scope so it picks the daemon-driven path and the special-case
`build_java_image` helper can be removed. Behavior matches what
docs/ci/cli-e2e-images.md already calls out: the Java image is built
from the local polyglot base and does not use a shared BuildKit cache
scope.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 124cad0 commit 6366cca
1 file changed
Lines changed: 26 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
95 | 89 | | |
96 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 101 | | |
105 | 102 | | |
106 | 103 | | |
| |||
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
| |||
0 commit comments