fix(docker): probe the configured healthcheck listener (#8572)

Use the existing HTTP host and port environment settings for the container
probe. Map wildcard hosts to loopback and keep TLS probes on the public
multiplexed port. Preserve readiness and startup-grace handling.

Honor the LocalStack listener aliases the way LocalStackParity does:
USE_SSL, EDGE_PORT and the first GATEWAY_LISTEN entry, with a nonempty
Floci setting winning and LOCALSTACK_PARITY=false turning them off.

Add socket-level coverage for listener selection and failure responses,
run in the existing Docker runner job.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
This commit is contained in:
Jackson PriceandAndre Kurait authored and GitHub committed 2026-11-21 15:41:25 -04:00
1 parent 1a107f8f46
commit fbedde4c2c
3 files changed
+251 -1

No files matched your search

+4
View File
@@ -12,6 +12,7 @@ on:
- 'docker/Dockerfile.compat'
- 'docker/entrypoint.sh'
- 'docker/healthcheck.sh'
- 'docker/test_healthcheck.py'
- 'docker/run-docker-tests.sh'
- 'docker/test-run-docker-tests.sh'
- 'docker/test-compat-socket.sh'
@@ -50,6 +51,9 @@ jobs:
- name: Test Docker runner failure aggregation
run: bash docker/test-run-docker-tests.sh
- name: Test container healthcheck listener
run: python3 -m unittest discover -s docker -p test_healthcheck.py
compat-aws-cli-shim:
name: compat / aws CLI endpoint resolution
runs-on: ubuntu-24.04-arm