Skip to content

BUNDLE_BIN and gem bindir is non-standard #83

@johnl

Description

@johnl

gem and bundler are explicitly configured to install gem binaries in /usr/local/bundle/bin. The PATH is modified to include it so the binaries can be used.

Instead, I'd like to propose installing gem binaries in /usr/local/bin which is already in the PATH, and already a standard component of PATHs everywhere (unlike /usr/local/bundle/bin which I can't find any other reference to). https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard#cite_note-8

This particularly helps me, because the Jenkins docker plugin overrides PATH with it's own default when it runs commands in containers; its own default of course includes /usr/local/bin but not /usr/local/bundle/bin.

An obvious objection to this is that the Jenkins docker plugin shouldn't override the PATH, which is fair, but I think that avoids the point here which is that these container images use a non-standard PATH which just invites trouble.

Is there a particular reason to use /usr/local/bundle/bin ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions