Menu

Using a Specific Buildpack Version

Using a Specific Buildpack Version

While Stratum can detect and apply a buildpack automatically, Catalyze recommends that Stratum users pin their buildpacks to a specific version.

If the buildpack is not pinned, users run the risk that a buildpack update unexpectedly breaks their code.

How do I pin the buildpack version?

The below procedure outlines how to pin the buildpack version for your application.

1. Set the BUILDPACK_URL environment variable

The Stratum build procedure constructs the application based on automatically detecting the code type or reading in the BUILDPACK_URL environment variable.

Every buildpack release is tagged with a version number. You can view the releases on the Github page for each buildpacks. Below is the Python buildpack for example:

Navigate to the Python Buildpack in a web browser. You’ll see the Github page. Click on the Releases link as highlighted below:

Python

This displays all of the buildpack releases as highlighted below.

Python_Releases

Choose the release you want to pin. In our example, we’ll choose v68. The buildpack URL will look like this:

https://github.com/heroku/heroku-buildpack-python#v68

Ensure you have the correct environment and service association for the application you want to modify. Remember, you can only have one code service associated with each environment alias!

Then set the URL. In this example, I’ve associated my app03 to the alias MyProdEnv-app03:

catalyze -E MyProdEnv-app03 vars set <service_name> -v BUILDPACK_URL="https://github.com/heroku/heroku-buildpack-python#v68"

2. Rebuild Application

This change will only take effect on the next build of the application. Builds are triggered by commits to the code service.

See also

Cloud computing for healthcare

If you store, process, or transmit Protected Health Information, rely on Catalyze to keep you HIPAA compliant with our platform as a service, mobile backend, or managed HL7 integrations.

Contact Us Learn More

Catalyze learning resources

Learn the important and intracate details of HIPAA compliance, make use of HL7, and understand the security aspects of handling protected health information with our learning resources.

Visit Catalyze Learning Resources