, 2021 ·

Workshops

Cloud Native Buildpacks: Images Made Easy

(90 min)

Cloud Native Buildpacks transform your source code into an image that can run in Kubernetes, Docker, or anywhere else you run containers! CNBs can help you generate a production-ready image, and keep your image secure with up-to-date dependencies, without writing or maintaining a Dockerfile.

You’ll get hands-on experience working with Paketo Java buildpacks, Spring’s preferred implementation of the Buildpack Specification. We’ll introduce two platforms capable of orchestrating builds with CNBs: the Spring Boot Maven Plugin and the pack CLI. Skills taught in this workshop can be applied to kpack, tekton, VMware Tanzu Build Service, or any other platform that supports buildpacks.

In this workshop, we will:

  • Build an application image with buildpacks and run it
  • Patch vulnerable operating system packages without rebuilding, using CNB’s rebase functionality
  • Generate a bill of materials describing the contents of the image
  • Use Spring Cloud Bindings to easily connect our running container to a data service
  • Customize the build in a variety of ways using features of the Paketo Java Buildpacks (e.g., add a label to the image, switch JVMs)
  • Extend the build by writing a simple buildpack

Prerequisites

  • Familiarity running OS commands from a command prompt
  • Basic familiarity with Bash
  • GitHub account
  • Some familiarity with the Docker CLI may be helpful

Requirements