Skip to content

@buildpack-bot buildpack-bot released this May 17, 2019

pack v0.2.0

This is the second 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 buildpack/tap
$ brew install pack

Otherwise:

  1. Download the .tgz or .zip file for your platform
  2. Extract the pack binary
  3. (Optional) Add the directory containing pack to PATH, or copy pack 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
  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
  version               Show current 'pack' version
  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

Use "pack [command] --help" for more information about a command.

Release Notes

  • Improve performance by 300%+ when building images for the local Docker daemon (#178 -> #185).
  • Add lifecycle to builder automatically (#173, #186).
  • Pull builder description from builder metadata (#172 -> #176).
  • Add support for HTTP/HTTPS proxies (#169 -> #175).
  • Support building from an app directory that's a symbolic link (#165).
  • Remove empty directory dependencies in stack images (#174).
  • pack build --buildpack supports archives.
  • Validate run images (#155).
  • Validate builder (#143, #149, #135).
  • Validate buildpacks (#134).
  • Display error when --path is invalid (#161).
  • Add pack suggest-builders to suggest community builder (#144 -> #152).
  • Additionally, pack set-default-builder suggests builders (#140).
  • pack inspect-builder displays the optionality of buildpacks (provided the builder was created by pack v0.2.0 or later) (#127)

See the corresponding lifecycle release for additional features and bug fixes introduced in this release!

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.
Assets 5
You can’t perform that action at this time.