Skip to content

Bring your own Ruby - #995

Merged
ryanmoran merged 1 commit into
mainfrom
byo-ruby
Mar 9, 2023
Merged

Bring your own Ruby#995
ryanmoran 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.

- 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
@ryanmoran
ryanmoran merged commit 6cd50d3 into main Mar 9, 2023
@ryanmoran

Copy link
Copy Markdown
Contributor Author

As I was merging a number of other PRs, the tab I had open with this PR got mixed in the shuffle and I accidentally pushed the big green button without thinking. I have already reverted the commit on main and I've opened the PR again over here: #1000. 😬

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.

1 participant