liveBook · Manning

Pack

As explained in Developer Experience on Kubernetes

Pack is the official command-line interface for creating container images with Cloud Native Buildpacks.

Pack is the official command-line interface for creating container images from application source code with Cloud Native Buildpacks. It applies the source-to-image pattern, moving container construction into a repeatable developer workflow. section 3.2.3

Pack organizes image creation around a builder image:

  • Selects a builder image containing the information needed to containerize the application. section 3.2.3
  • Runs a sequence of buildpacks covering concerns such as the operating system, language runtime, CA certificates, and SBOM generation. section 3.2.3
  • Produces an OCI container image that can be shared across environments. section 3.2.3

Build and inspect an application image

Check the CLI with `pack version`, build an image with `pack build appointments:0.0.1-SNAPSHOT`, then download its SBOM using `pack sbom download appointments:0.0.1-SNAPSHOT --output-dir image-sboms`. section 3.2.3

pack build appointments:0.0.1-SNAPSHOT
 

Browse the concrete Pack image-build command. section 3.2.3

pack sbom download appointments:0.0.1-SNAPSHOT \
  --output-dir image-sboms
 

Browse the command for exporting image SBOMs. section 3.2.3

How Developer Experience on Kubernetes covers it

How deep it goes
Explains builder images and buildpack sequencing, but stops short of implementation internals.
Examples
Uses version checking, application image construction, and SBOM export as concrete command-line examples.
What it assumes
Starts with application source code and relies on a selected builder image to supply containerization knowledge.
What you can do after
Builds container images and exports their SBOMs through Pack commands.
How it connects
Connects Cloud Native Buildpacks with source-to-image workflows, builder images, OCI images, and software bills of materials.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Developer Experience on Kubernetes. The section links point to the parts of the book it draws on.