pack builder create

pack builder create

Create builder image

Synopsis

A builder is an image that bundles all the bits and information on how to build your apps, such as buildpacks, an implementation of the lifecycle, and a build-time environment that pack uses when executing the lifecycle. When building an app, you can use community builders; you can see our suggestions by running

pack builders suggest

Creating a custom builder allows you to control what buildpacks are used and what image apps are based on. For more on how to create a builder, see: https://buildpacks.io/docs/operator-guide/create-a-builder/.

pack builder create <image-name> --config <builder-config-path> [flags]

Examples

pack builder create my-builder:bionic --config ./builder.toml

Options

  -R, --buildpack-registry string   Buildpack Registry by name
  -c, --config string               Path to builder TOML file (required)
      --flatten stringArray         List of buildpacks to flatten together into a single layer (format: '<buildpack-id>@<buildpack-version>,<buildpack-id>@<buildpack-version>'
  -h, --help                        Help for 'create'
  -l, --label stringToString        Labels to add to the builder image, in the form of '<name>=<value>' (default [])
      --publish                     Publish the builder directly to the container registry specified in <image-name>, instead of the daemon.
      --pull-policy string          Pull policy to use. Accepted values are always, never, and if-not-present. The default is always
  -t, --target strings              Target platforms to build for.\nTargets should be in the format '[os][/arch][/variant]:[distroname@osversion@anotherversion];[distroname@osversion]'.
                                    - To specify two different architectures:  '--target "linux/amd64" --target "linux/arm64"'
                                    - To specify the distribution version: '--target "linux/arm/v6:ubuntu@14.04"'
                                    - To specify multiple distribution versions: '--target "linux/arm/v6:ubuntu@14.04"  --target "linux/arm/v6:ubuntu@16.04"'
                                    	

Options inherited from parent commands

      --force-color   Force color output
      --no-color      Disable color output
  -q, --quiet         Show less output
      --timestamps    Enable timestamps in output
  -v, --verbose       Show more output

SEE ALSO