Commit d964ac2
fix: use docker cp instead of file bind mounts for DinD compatibility (#1079)
* fix: use env var injection for squid config to support DinD environments
Replace the squid.conf file bind mount with a base64-encoded environment
variable (AWF_SQUID_CONFIG_B64) to support Docker-in-Docker environments
like ARC self-hosted runners.
In DinD, the Docker daemon runs in a separate container and cannot access
files on the host filesystem. File bind mounts fail with "not a directory"
errors because the daemon creates a directory at the non-existent path.
Instead of bind-mounting squid.conf, the config is:
1. Base64-encoded and passed as AWF_SQUID_CONFIG_B64 env var
2. Decoded by an entrypoint override before squid starts
This works universally because env vars are part of the container spec
sent via the Docker API, bypassing filesystem sharing entirely.
The startup flow (docker compose up -d) is unchanged, so all existing
integration tests and behavior remain compatible.
Fixes github/gh-aw#18385
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: redirect docker compose stdout to stderr to prevent test pollution
Docker Compose outputs build progress and container status to stdout
during `docker compose up -d` and `docker compose down -v`. When tests
capture AWF's stdout to check agent command output, the Docker Compose
output gets mixed in, breaking assertions.
Redirect Docker Compose stdout to process.stderr so:
- Users still see progress output in their terminal (stderr is visible)
- Test runners only capture agent command output on stdout
- AWF's stderr-based logging remains consistent
The `docker logs -f` command for agent output streaming retains
stdio: inherit since that output IS the agent's actual stdout.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 30d1f1d commit d964ac2
2 files changed
+67
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
| 481 | + | |
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
485 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
486 | 503 | | |
487 | 504 | | |
488 | 505 | | |
| |||
2267 | 2284 | | |
2268 | 2285 | | |
2269 | 2286 | | |
2270 | | - | |
| 2287 | + | |
2271 | 2288 | | |
2272 | 2289 | | |
2273 | 2290 | | |
| |||
2280 | 2297 | | |
2281 | 2298 | | |
2282 | 2299 | | |
2283 | | - | |
| 2300 | + | |
2284 | 2301 | | |
2285 | 2302 | | |
2286 | 2303 | | |
| |||
2293 | 2310 | | |
2294 | 2311 | | |
2295 | 2312 | | |
2296 | | - | |
| 2313 | + | |
2297 | 2314 | | |
2298 | 2315 | | |
2299 | 2316 | | |
| |||
2306 | 2323 | | |
2307 | 2324 | | |
2308 | 2325 | | |
2309 | | - | |
| 2326 | + | |
2310 | 2327 | | |
2311 | 2328 | | |
2312 | 2329 | | |
| |||
2361 | 2378 | | |
2362 | 2379 | | |
2363 | 2380 | | |
2364 | | - | |
| 2381 | + | |
2365 | 2382 | | |
2366 | 2383 | | |
2367 | 2384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
252 | 258 | | |
253 | | - | |
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
| |||
292 | 297 | | |
293 | 298 | | |
294 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
295 | 323 | | |
296 | 324 | | |
297 | 325 | | |
| |||
1294 | 1322 | | |
1295 | 1323 | | |
1296 | 1324 | | |
1297 | | - | |
| 1325 | + | |
1298 | 1326 | | |
1299 | | - | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1300 | 1330 | | |
1301 | 1331 | | |
1302 | 1332 | | |
| |||
1395 | 1425 | | |
1396 | 1426 | | |
1397 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
1398 | 1434 | | |
1399 | 1435 | | |
1400 | | - | |
| 1436 | + | |
| 1437 | + | |
1401 | 1438 | | |
1402 | 1439 | | |
1403 | 1440 | | |
| |||
1551 | 1588 | | |
1552 | 1589 | | |
1553 | 1590 | | |
1554 | | - | |
| 1591 | + | |
| 1592 | + | |
1555 | 1593 | | |
1556 | 1594 | | |
1557 | 1595 | | |
| |||
0 commit comments