Paketo Buildpack for Bundler
gcr.io/paketo-buildpacks/bundler
The Bundler CNB provides the Bundler binary.
The buildpack installs Bundler onto the $PATH
and $GEM_PATH
which makes it available for subsequent buildpacks
and/or in the final running container.
Integration
The Bundler CNB provides bundler as a dependency.
Downstream buildpacks can require the bundler dependency by generating a
Build Plan TOML
file that looks like the following:
[[requires]]
name = "bundler"
[requires.metadata]
version = "2.1.4"
build = true
launch = true
Usage
To package this buildpack for consumption:
$ ./scripts/package.sh
This builds the buildpack's Go source using GOOS=linux by default. You can
supply another value as the first argument to package.sh.
Bundler Configurations
Specifying the Bundler
version through buildpack.yml
configuration will be
deprecated in Bundler Buildpack v1.0.0.
To migrate from using buildpack.yml
please set the $BP_BUNDLER_VERSION
environment variable at build time either directly (ex. pack build my-app --env BP_BUNDLER_VERSION=2.7.*
) or through a project.toml
file
$BP_BUNDLER_VERSION="2.1.4"
This will replace the following structure in buildpack.yml
:
bundler:
version: 2.1.4
Logging Configurations
To configure the level of log output from the buildpack itself, set the
$BP_LOG_LEVEL
environment variable at build time either directly (ex. pack build my-app --env BP_LOG_LEVEL=DEBUG
) or through a project.toml
file
If no value is set, the default value of INFO
will be used.
The options for this setting are:
INFO
: (Default) log information about the progress of the build processDEBUG
: log debugging information about the progress of the build process
$BP_LOG_LEVEL="DEBUG"
Compatibility
This buildpack is currently only supported on the Paketo Bionic and Jammy stack
distributions. A pre-compiled distribution of Bundler is provided for the Paketo stacks (i.e.
io.buildpacks.stack.jammy
and io.buildpacks.stacks.bionic
).