Skip to content

test: verify Docker image builds and starts successfully on custom ports#347

Open
icebear0828 wants to merge 1 commit intomasterfrom
test-docker-matrix-port-13855028842721639643
Open

test: verify Docker image builds and starts successfully on custom ports#347
icebear0828 wants to merge 1 commit intomasterfrom
test-docker-matrix-port-13855028842721639643

Conversation

@icebear0828
Copy link
Copy Markdown
Owner

This PR addresses the issue of verifying the Docker image builds and executes the health checks correctly on alternate ports.

Changes introduced:

  • Adds a matrix strategy in .github/workflows/ci-docker.yml testing both 8080 and 8090.
  • Passes the matrix port down into the container via the -e PORT=${{ matrix.port }} argument.
  • Updates the host-binding in docker run to match the matrix target.
  • Updates the test's subsequent HTTP polling to query the dynamically assigned matrix port instead of hardcoding 18080.
  • Modifies docker-healthcheck.sh to prioritize the injected PORT env variable for curl connectivity before reading local config or default overrides.

PR created automatically by Jules for task 13855028842721639643 started by @icebear0828

Modifies the Docker smoke test workflow (`ci-docker.yml`) to use a strategy matrix that runs the container on both the default port `8080` and a custom port `8090`. The `docker-healthcheck.sh` script is simultaneously updated to dynamically resolve the required port using the injected `PORT` environment variable, falling back gracefully to local overlays, default config, or `8080`.

Fixes #120

Co-authored-by: icebear0828 <63769498+icebear0828@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant