sintheta
sintheta

Reputation: 1

How to refer past buildpacks of Bluemix?

I want to fork past buildpacks and push with -b option. https://docs.cloudfoundry.org/buildpacks/custom.html

In the following link, there is only one version/branch. https://github.com/IBM-Bluemix-Docs/liberty/blob/master/

How to refer past buildpacks of Bluemix?

Upvotes: -1

Views: 55

Answers (1)

jmarrero
jmarrero

Reputation: 221

To use an older release of the buildpack, you can pass the -b option specifying a tag which it is used for the version of the official buildpack for example:

cf push myAppName -b https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack.git#v2.7.0.2

You can see the releases in the following link: https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack/releases

Notice the version tag on the left side of each release.

If you want to customize on top of a specific version:

1) Clone the complete repo which include all the release tags.

2) checkout the tag i.e.

git checkout tags/<tag_name>

3) do you customization and push to your own repo/branch.

4) Push your app pointing to your new branch with your custom buildpack:

cf push my-new-app -b https://github.com/johndoe/my-buildpack.git#my-branch-name

reference:

  1. Download a specific tag with Git
  2. https://docs.cloudfoundry.org/buildpacks/custom.html

Upvotes: 1

Related Questions