Skip to content

Bring your own Ruby (whoops) - #1000

Merged
pivotal-david-osullivan merged 1 commit into
mainfrom
byo-ruby
Mar 20, 2023
Merged

Bring your own Ruby (whoops)#1000
pivotal-david-osullivan merged 1 commit into
mainfrom
byo-ruby

Conversation

@ryanmoran

Copy link
Copy Markdown
Contributor

Before the cflinuxfs4 stack becomes the default in CF, we will be removing the ruby interpreter from the set of installed packages. This means that the Java buildpack will need to bring its own interpreter in order to keep running on Ruby.

This PR contains a small bash shim that sits in front of each of the buildpack bin/* executables. The shim makes sure that there is an installed Ruby interpreter in a predefined location and then execs the equivalent Ruby entrypoint for the buildpack.

The buildpack packaging and configuration have been slightly modified to allow for this to work both online and offline.

The buildpack will run with the latest Ruby 3.1.x version available in the Ruby Buildpack repository.

@ryanmoran ryanmoran mentioned this pull request Mar 9, 2023
- the bin/{compile,detect,finalize,release} executables have been
  wrapped in a small shim that makes sure a Ruby interpreter is
  available on the PATH before exec-ing the existing buildpack
  entrypoints
- works both online and offline
- currently pinned to the latest Ruby 3.1.x version available in the
  Ruby Buildpack repository
@pivotal-david-osullivan
pivotal-david-osullivan merged commit b1e58f8 into main Mar 20, 2023
@ryanmoran
ryanmoran deleted the byo-ruby branch March 20, 2023 15:14
ramonskie pushed a commit that referenced this pull request Dec 4, 2025
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.

2 participants