These are the example files used in the CloudNative.FM episode highlighting Cartographer. Cartographer is an open source project allowing you to get your code to production using Kubernetes Resources as your primitives, rather than executable files. Leave bash scripting behind and make your software supply chain cloud native!
There are two prerequisites to running the full supply chain example:
- A registry to which you have write permissions. E.g. dockerhub or gcr.
- In the kpack-boilerplate file, alter the tag field of the cluster
builder. E.g. change
index.docker.io/waciumawanjohi/example-gitwriter-sc-go-builder
toYOUR_REGISTRY/YOUR_PROJECT/example-gitwriter-sc-go-builder
- In the supply chain, alter the
image-builder
'simage-prefix
param to point to your registry. E.g. changeindex.docker.io/waciumawanjohi/example-gitwriter-sc-
toYOUR_REGISTRY/YOUR_PROJECT/example-gitwriter-sc-
- Create a secret with credentials to write to that repository. This secret must be named
registry-credentials
. E.g. apply the following to your cluster after having entered your credentials.
---
apiVersion: v1
kind: Secret
metadata:
name: registry-credentials
annotations:
kpack.io/docker: https://index.docker.io/v1/
type: kubernetes.io/basic-auth
stringData:
username: "SOME_USERNAME"
password: "SOME_PASSWORD"
There are many resources to learn about Cartographer. Our project website includes: