Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

A curated set of buildpacks, stacks, and builders to use with kpack, a Kubernetes-native implementation of Cloud Native Buildpacks.

License

Notifications You must be signed in to change notification settings

ThomasVitale/kpack-dependencies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Kpack Dependencies

Test Workflow Release Workflow The SLSA Level 3 badge The Apache 2.0 license badge Follow us on Twitter

Warning This package has been replaced by buildpacks-catalog.

A Carvel package providing a set of buildpacks, stacks, and builders to use with kpack, a Kubernetes-native implementation of Cloud Native Buildpacks to build application source code into OCI images.

This package relies on the Paketo Buildpacks implementation, which provide support for multiple languages and frameworks, including Java, Spring, GraalVM, Go, Python, NodeJs, and more.

🚀  Getting Started

Prerequisites

  • Kubernetes 1.24+

  • Carvel kctrl CLI.

  • Carvel kapp-controller deployed in your Kubernetes cluster. You can install it with Carvel kapp (recommended choice) or kubectl.

    kapp deploy -a kapp-controller -y \
      -f https://github.com/carvel-dev/kapp-controller/releases/latest/download/release.yml

Dependencies

Kpack Dependencies requires the kpack package. You can install it from the Kadras package repository.

Installation

Add the Kadras package repository to your Kubernetes cluster:

kubectl create namespace kadras-packages
kctrl package repository add -r kadras-packages \
  --url ghcr.io/kadras-io/kadras-packages \
  -n kadras-packages
Installation without package repository The recommended way of installing the kpack-dependencies package is via the Kadras package repository. If you prefer not using the repository, you can add the package definition directly using kapp or kubectl.
kubectl create namespace kadras-packages
kapp deploy -a kpack-dependencies-package -n kadras-packages -y \
  -f https://github.com/kadras-io/kpack-dependencies/releases/latest/download/metadata.yml \
  -f https://github.com/kadras-io/kpack-dependencies/releases/latest/download/package.yml

Install the Kpack Dependencies package:

kctrl package install -i kpack-dependencies \
  -p kpack-dependencies.packages.kadras.io \
  -v ${VERSION} \
  -n kadras-packages

Note You can find the ${VERSION} value by retrieving the list of package versions available in the Kadras package repository installed on your cluster.

kctrl package available list -p kpack-dependencies.packages.kadras.io -n kadras-packages

Verify the installed packages and their status:

kctrl package installed list -n kadras-packages

📙  Documentation

Documentation, tutorials and examples for this package are available in the docs folder. For documentation specific to kpack, check out github.com/pivotal/kpack.

🎯  Configuration

The Kpack Dependencies package can be customized via a values.yml file.

kp_default_repository:
  name: ghcr.io/thomasvitale/kpack

Reference the values.yml file from the kctrl command when installing or upgrading the package.

kctrl package install -i kpack-dependencies \
  -p kpack-dependencies.packages.kadras.io \
  -v ${VERSION} \
  -n kadras-packages \
  --values-file values.yml

Values

The Kpack Dependencies package has the following configurable properties.

Configurable properties
Config Default Description
kp_default_repository.name "" The default repository to use for builder images and dependencies. For example, GitHub Container Registry: ghcr.io/my-org/my-repo; GCR: gcr.io/my-project/my-repo; Harbor: myharbor.io/my-project/my-repo, Dockerhub: docker.io/my-username/my-repo.

🛡️  Security

The security process for reporting vulnerabilities is described in SECURITY.md.

🖊️  License

This project is licensed under the Apache License 2.0. See LICENSE for more information.

🙏  Acknowledgments

This package is inspired by the original kpack-dependencies package used in the Tanzu Community Edition project before its retirement.