The Cloud Native Buildpacks project takes source code as input and then outputs an Open Container Initiative (OCI)-compliant container image. Cloud Native Buildpacks provide a dead-simple developer experience while giving platform teams the ability to control and regulate how images are built.
There are many ways to implement Cloud Native Buildpacks. Here we will use the pack
CLI which is maintained by the Cloud Native Buildpacks project.
- Install the
pack
CLI - Make sure that Docker is up and running
export TAG=v0.0.1
yq --inplace ".tag = \"v0.0.1\"" settings.yaml
pack config default-builder paketobuildpacks/builder:tiny
pack build cncf-demo:$TAG
docker image ls