Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 2.54 KB

File metadata and controls

67 lines (52 loc) · 2.54 KB

Ruby Paketo Buildpack

gcr.io/paketo-buildpacks/ruby

The Ruby Paketo Buildpack provides a set of collaborating buildpacks that enable the building of a Ruby-based application. These buildpacks include:

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.

The Ruby buildpack is compatible with the following builder(s):

Packaging

To package this buildpack for consumption:

./scripts/package.sh --version <version-number>

For example:

./scripts/package.sh --version 0.47.14

This will create a buildpackage.cnb file and a buildpack-release-artifact.tgz archive in the build/ directory.

Publishing

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.14

The script will automatically publish the composite buildpack as a multi-arch image to ECR.