Skip to content

Commit

Permalink
Merge pull request #1432 from SaschaSchwarze0/sascha-cleanup-buildpac…
Browse files Browse the repository at this point in the history
…ks-strategies

Cleanup Buildpacks strategies
  • Loading branch information
openshift-merge-bot[bot] authored Nov 16, 2023
2 parents f2a4330 + 3ddb9ff commit 40a23bc
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 1,466 deletions.
18 changes: 11 additions & 7 deletions docs/buildstrategies.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,29 @@ kubectl apply -f samples/v1beta1/buildstrategy/buildah/buildstrategy_buildah_str

## Buildpacks v3

The [buildpacks-v3][buildpacks] BuildStrategy/ClusterBuildStrategy uses a Cloud Native Builder ([CNB][cnb]) container image, and is able to implement [lifecycle commands][lifecycle]. The following CNB images are the most common options:

- [`heroku/buildpacks:18`][hubheroku]
- [`cloudfoundry/cnb:bionic`][hubcloudfoundry]
- [`docker.io/paketobuildpacks/builder:full`](https://hub.docker.com/r/paketobuildpacks/builder/tags)
The [buildpacks-v3][buildpacks] BuildStrategy/ClusterBuildStrategy uses a Cloud Native Builder ([CNB][cnb]) container image, and is able to implement [lifecycle commands][lifecycle].

### Installing Buildpacks v3 Strategy

You can install the `BuildStrategy` in your namespace or install the `ClusterBuildStrategy` at cluster scope so that it can be shared across namespaces.

To install the cluster scope strategy, use (below is a heroku example, you can also use paketo sample):
To install the cluster scope strategy, you can chose between the Paketo and Heroku buildpacks family:

```sh
# Paketo
kubectl apply -f samples/v1beta1/buildstrategy/buildpacks-v3/buildstrategy_buildpacks-v3_cr.yaml

# Heroku
kubectl apply -f samples/v1beta1/buildstrategy/buildpacks-v3/buildstrategy_buildpacks-v3-heroku_cr.yaml
```

To install the namespaced scope strategy, use:
To install the namespaced scope strategy, you can chose between the Paketo and Heroku buildpacks family:

```sh
# Paketo
kubectl apply -f samples/v1beta1/buildstrategy/buildpacks-v3/buildstrategy_buildpacks-v3_namespaced_cr.yaml

# Heroku
kubectl apply -f samples/v1beta1/buildstrategy/buildpacks-v3/buildstrategy_buildpacks-v3-heroku_namespaced_cr.yaml
```

Expand Down
2 changes: 1 addition & 1 deletion pkg/reconciler/buildrun/resources/taskrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ var _ = Describe("GenerateTaskrun", func() {
namespace = "build-test"
contextDir = "docker-build"
builderImage = &buildv1alpha1.Image{
Image: "heroku/buildpacks:18",
Image: "heroku/builder:22",
}
outputPath = "image-registry.openshift-image-registry.svc:5000/example/buildpacks-app"
outputPathBuildRun = "image-registry.openshift-image-registry.svc:5000/example/buildpacks-app-v2"
Expand Down

This file was deleted.

Loading

0 comments on commit 40a23bc

Please sign in to comment.