Skip to content

fix(entrypoint): honor PGPORT in initialization SQL - #36

Open
youngkermit8-coder wants to merge 1 commit into
IvorySQL:mainfrom
youngkermit8-coder:codex/entrypoint-pgport
Open

youngkermit8-coder wants to merge 1 commit into
IvorySQL:mainfrom
youngkermit8-coder:codex/entrypoint-pgport

Conversation

@youngkermit8-coder

Copy link
Copy Markdown

Setting PGPORT=6543 starts the temporary server on 6543, but initialization SQL still connects to the hard-coded port 5866. Use the same ${PGPORT:-5866} fallback for the SQL client and server so database creation and init scripts can connect. Update the root entrypoint and all ten generated version/variant copies.

Validation: bash tests/entrypoint-port.sh: 22 default/custom-port cases across all 11 entrypoints, with database commands stubbed. The custom-port case fails on the base revision and passes with this change.

git diff --check passes. No live database server or full image build was run.

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