Fix gem bin PATH in ruby-arch base image #363
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform#363
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Context
Discovered during T3 validation (
validation-360-2026-05-10). Theruby-archbase image installs bundler viagem install bundler, but Arch Linux's Ruby puts user-installed gem binaries in/root/.local/share/gem/ruby/3.4.0/bin/instead of/usr/bin/. Runningbundlerwithout the full path fails withexecutable file not found in $PATH.Expected Behavior
bundler(and any other gem-installed binaries) should be available in PATH.Actual Behavior
bundleronly works via full path:/root/.local/share/gem/ruby/3.4.0/bin/bundler.Proposed Fix
Either:
ENV PATH="/root/.local/share/gem/ruby/3.4.0/bin:${PATH}"to the Dockerfilegem install --no-user-install bundlerto install to/usr/bin/The
--no-user-installapproach is more robust since it doesn't hardcode the Ruby version in the path.Acceptance Criteria
docker run ... bundler --versionworks without specifying full pathdocker run ... bundle --versionalso works