The Ruby Paketo Buildpack provides a set of collaborating buildpacks that enable the building of a Ruby-based application. These buildpacks include:
- Bundle Install
- Bundler
- MRI
- Node Engine
- Passenger
- Puma
- Rackup
- Rails Assets
- Rake
- Thin
- Unicorn
- Yarn Install
- Yarn
The buildpack supports building simple Ruby applications or applications which
utilize Bundler for managing their dependencies. Usage
examples can be found in the
samples repository under the ruby directory.
To package this buildpack for consumption:
./scripts/package.sh --version <version-number>For example:
./scripts/package.sh --version 0.47.14This will create a buildpackage.cnb file and a buildpack-release-artifact.tgz archive in the build/ directory.
To publish this buildpack to ECR:
# First, authenticate with ECR (if not already authenticated)
aws ecr get-login-password --region us-east-1 | \
docker login --username AWS --password-stdin 348674388966.dkr.ecr.us-east-1.amazonaws.com
# Then publish the buildpack
./scripts/publish.sh \
--archive-path build/buildpack-release-artifact.tgz \
--image-ref 348674388966.dkr.ecr.us-east-1.amazonaws.com/neeto-deploy/paketo/buildpack/ruby:<version>For example:
./scripts/publish.sh \
--archive-path build/buildpack-release-artifact.tgz \
--image-ref 348674388966.dkr.ecr.us-east-1.amazonaws.com/neeto-deploy/paketo/buildpack/ruby:0.47.14The script will automatically publish the composite buildpack as a multi-arch image to ECR.