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
