Skip to content

Fix shell prompt hostname - #222

Merged
csandanov merged 1 commit into
masterfrom
fix/runtime-hostname-prompt
Sep 4, 2026
Merged

Fix shell prompt hostname#222
csandanov merged 1 commit into
masterfrom
fix/runtime-hostname-prompt

Conversation

@csandanov

@csandanov csandanov commented Sep 4, 2026

Copy link
Copy Markdown
Member

Shell prompts currently reconstruct a hostname from application environment variables. That can display a stale value such as wodby-1.container even when Kubernetes assigned a friendly runtime hostname. This change makes the prompt use the container's actual hostname instead.

The generated shell startup file now evaluates hostname when the shell starts. The image test suite also verifies that the generated PS1 contains that exact runtime hostname.

Validation

  • bash -n 8/tests/tests.sh
  • docker build --check --build-arg PHP_VER=8.3.33 .
  • Full supported-version and architecture matrix passed in pull-request CI

Related pull requests

Use the container runtime hostname in the shell prompt so Kubernetes hostname overrides are visible instead of reconstructing a stale app and environment label. Add a regression assertion for the generated prompt.
@csandanov
csandanov marked this pull request as ready for review September 4, 2026 08:22
@csandanov
csandanov merged commit 87e171f into master Sep 4, 2026
26 checks passed
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