A better way to fix this may be to submit an upstream PR to the maintainers of alpine:ruby so that they can set the correct GEM_* environment variables according to the source-built version of ruby they choose to use.
For now, however, I believe this will correct the issue as reported.
Overview
This PR resolves #510 by working around the non-apk-provided ruby 2.7.0 from
alpine:ruby
using environment variables.I did the following:
GEM_HOME
from upstream to be accurategem install bundler
as it is provided upstream in/usr/local/bin
build-base
toapk del
to be symmetric with the temporaryapk add
Testing
There are no automated tests but I have manually verified that the following results in JSON output:
Additional steps
A better way to fix this may be to submit an upstream PR to the maintainers of
alpine:ruby
so that they can set the correctGEM_*
environment variables according to the source-built version of ruby they choose to use.For now, however, I believe this will correct the issue as reported.