Commit ea672a4
J.A.R.V.I.S
fix(docker): HTTP server must bind 0.0.0.0 in container for port mapping to work
Root cause of smoke test failure: ThreadingHTTPServer was bound to
'127.0.0.1' inside the container. Docker port mapping (-p 8100:8100)
only forwards to 0.0.0.0 listeners; a 127.0.0.1-only bind is not
reachable from the host even with the port mapping configured.
Changes:
- acp_relay.py: add --http-host flag (default: 127.0.0.1 for backward compat)
and pass it through to run_http()
- Dockerfile CMD: add --http-host 0.0.0.0 so the container exposes HTTP
correctly via Docker port mapping1 parent cb59790 commit ea672a4
2 files changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2225 | 2225 | | |
2226 | 2226 | | |
2227 | 2227 | | |
2228 | | - | |
| 2228 | + | |
2229 | 2229 | | |
2230 | 2230 | | |
2231 | 2231 | | |
2232 | 2232 | | |
2233 | | - | |
| 2233 | + | |
| 2234 | + | |
2234 | 2235 | | |
2235 | 2236 | | |
2236 | 2237 | | |
| |||
2441 | 2442 | | |
2442 | 2443 | | |
2443 | 2444 | | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
2444 | 2448 | | |
2445 | 2449 | | |
2446 | 2450 | | |
| |||
2571 | 2575 | | |
2572 | 2576 | | |
2573 | 2577 | | |
2574 | | - | |
2575 | | - | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
2576 | 2581 | | |
2577 | 2582 | | |
2578 | 2583 | | |
| |||
0 commit comments