Formulae and tools to build versions of Ruby that can be installed and run from anywhere on the filesystem.
Just brew install homebrew/portable-ruby/<formula>
.
Run brew portable-package ruby
inside an OS X 10.9 VM (so it is compatible with all working Homebrew macOS versions).
Build a Docker image for your architecture by running one of the following commands.
docker build -f Dockerfile --platform linux/amd64 --build-arg img=debian/eol:wheezy -t homebrew-portable .
docker build -f Dockerfile --platform linux/arm/v6 --build-arg img=resin/rpi-raspbian:wheezy -t homebrew-portable .
docker build -f Dockerfile --platform linux/arm64/v8 --build-arg img=debian/eol:jessie -t homebrew-portable .
Build the portable-ruby
package using that Docker image.
docker run --name=homebrew-portable-ruby -w /bottle homebrew-portable brew portable-package ruby
docker cp homebrew-portable-ruby:/bottle .
Used in production for Homebrew/brew.
irb
on Linux builds seems to fail to link to ncurses statically. Ifportable-ncurses
is removed,irb
will fail to handle left, right or backspace keystroke.
Code is under the BSD 2 Clause (NetBSD) license.