Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.13 KB

stack.md

File metadata and controls

35 lines (24 loc) · 1.13 KB

Stacks

A stack resource is the specification for a cloud native buildpacks stack used during build and in the resulting app image.

The stack will be referenced by a builder resource.

At this time only a Cluster scoped ClusterStack is available.

Cluster Stack Configuration

apiVersion: kpack.io/v1alpha1
kind: ClusterStack
metadata:
  name: base
spec:
  id: "io.buildpacks.stacks.bionic"
  buildImage:
    image: "paketobuildpacks/build:base-cnb"
  runImage:
    image: "paketobuildpacks/run:base-cnb"
  • id: The 'id' of the stack
  • buildImage.image: The build image of stack.
  • runImage.image: The run image of stack.

Updating a stack

The stack resource will not poll for updates. A CI/CD tool is needed to update the resource with new digests when new images are available.

Suggested stacks

The pack CLI command: pack stack suggest will display a list of recommended stacks that can be used. We recommend starting with the io.buildpacks.stacks.bionic base stack.