pack v0.6.0
pack v0.6.0
This is the sixth beta release of the Cloud Native Buildpack local CLI. This platform implementation should be relatively stable and reliable, but breaking changes in the underlying specification may be implemented without notice. Note that pack is intended for local image builds, and thus requires a Docker daemon. The lifecycle should be used directly when building on cloud platforms.
Prerequisites
- The Docker daemon must be installed on your workstation or accessible over the network.
Install
If you're on macOS, you can use Homebrew:
$ brew tap buildpacks/tap
$ brew install pack
Otherwise:
- Download the
.tgz
or.zip
file for your platform - Extract the
pack
binary - (Optional) Add the directory containing
pack
toPATH
, or copypack
to a directory like/usr/local/bin
Run
Run the command pack
.
You should see the following output
Usage:
pack [command]
Available Commands:
build Generate app image from source code
run Build and run app image (recommended for development only)
rebase Rebase app image with latest run image
inspect-image Show information about a built image
create-builder Create builder image
set-run-image-mirrors Set mirrors to other repositories for a given run image
inspect-builder Show information about a builder
set-default-builder Set default builder used by other commands
suggest-builders Display list of recommended builders
suggest-stacks Display list of recommended stacks
version Show current 'pack' version
report Display useful information for reporting an issue
completion Outputs completion script location
help Help about any command
Flags:
-h, --help Help for 'pack'
--no-color Disable color output
-q, --quiet Show less output
--timestamps Enable timestamps in output
-v, --verbose Show more output
--version Show current 'pack' version
Use "pack [command] --help" for more information about a command.
Info
Builders created with this release of the pack CLI continue to contain lifecycle v0.5.0 by default. Builders created with the next upcoming lifecycle release (likely lifecycle v0.6.0), will not work with pack v0.5.0 or earlier, so please upgrade to pack v0.6.0 or later as soon as possible.
Features
- Adds
pack report
command (#373) - Validates mixing during
pack create-builder
andpack build
(#374) - Adds mixins to
pack inspect-builder
output (#382) - Adds support for Platform API 0.2 (#384)
- Adds processes to
pack inspect-image
output (#397) - Adds
pack —version
in addition topack version
(#405) pack inspect-builder
now returns an error when builder is not found (#406)
Fixes
- Compresses layers using same strategy as docker so that layer digests remain constant (#380)
- Fixes typos (#404)
Known Issues
- Publishing to a private registry from Windows still fails in some cases (#109). We have fixed this upstream in Docker for Windows (docker/docker-credential-helpers#139), but Docker will need to ship a new version to fix this bug.