-1

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?

sintheta
  • 1
  • 2
  • Welcome to stackoverflow. Unfortunately your question does not meet the criteria for stackoverflow. Please see here for more info: https://stackoverflow.com/help/how-to-ask – Chris Snow Jun 30 '17 at 15:54
  • Thank you for your comment. Do you mean it is ambiguous? I modified the title and question. – sintheta Jul 03 '17 at 10:55

1 Answers1

1

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
jmarrero
  • 221
  • 3
  • 8