Name
kf wrap-v2-buildpack - Create a V3 buildpack that wraps a V2 buildpack.
Synopsis
kf wrap-v2-buildpack NAME V2_BUILDPACK_URL|PATH [flags]
Description
Creates a V3 buildpack that wraps a V2 buildpack.
The resulting buildpack can then be used with other V3 buildpacks by creating a builder. See https://buildpacks.io/docs/operator-guide/create-a-builder/ for more information.
A V3 buildpack is packaged as an OCI container. If the --publish flag is provided, then the container will be published to the corresponding container repository.
This command uses other CLIs under the hood. This means the following CLIs need to be available on the path: * go * git * pack * cp * unzip
We recommend using Cloud Shell to ensure these CLIs are available and the correct version.
Examples
# Download buildpack from the given git URL. Uses the git CLI to # download the repository. kf wrap-v2-buildpack gcr.io/some-project/some-name https://github.com/some/buildpack # Creates the buildpack from the given path. kf wrap-v2-buildpack gcr.io/some-project/some-name path/to/buildpack # Creates the buildpack from the given archive file. kf wrap-v2-buildpack gcr.io/some-project/some-name path/to/buildpack.zip
Flags
--builder-repo=stringBuilder repo to use. (default "github.com/poy/buildpackapplifecycle/builder")
--buildpack-stacks=stringArrayStack(s) this buildpack will be compatible with. (default [google])
--buildpack-version=stringVersion of the resulting buildpack. This will be used as the image tag. (default "0.0.1")
-h, --helphelp for wrap-v2-buildpack
--launcher-repo=stringLauncher repo to use. (default "github.com/poy/buildpackapplifecycle/launcher")
--output-dir=stringOutput directory for the buildpack data (before it's packed). If left empty, a temp dir will be used.
--publishPublish the buildpack image.
Inherited flags
These flags are inherited from parent commands.
--as=stringUsername to impersonate for the operation.
--as-group=stringsGroup to impersonate for the operation. Include this flag multiple times to specify multiple groups.
--config=stringPath to the Kf config file to use for CLI requests.
--kubeconfig=stringPath to the kubeconfig file to use for CLI requests.
--log-httpLog HTTP requests to standard error.
--space=stringSpace to run the command against. This flag overrides the currently targeted Space.