Disclaimer
This repo is very new, experimental, and not yet continuously integrated or tested to the degree we'd like.
Pre-requisites
- Clone the
cf-for-k8s
repository: https://github.com/cloudfoundry/cf-for-k8s/ - Install any prerequisites of
cf-for-k8s
: https://github.com/cloudfoundry/cf-for-k8s/blob/master/docs/deploy.md#prerequisites
Configuring pushes of buildpack apps
capi-k8s-release
currently uploads app source code to a blobstore, but then hands that off to kpack
to build app images that are then placed in a registry. In order for this to work, you must configure the following values:
kpack:
registry:
hostname: # the hostname of the registry, used for authentication
repository: # the destination of the build app images within the registry
username: # basic auth registry username
password: # basic auth registry password
dockerhub example:
kpack:
registry:
hostname: https://index.docker.io/v1/
repository: cloudfoundry/capi
username: <username>
password: <password>
gcr example:
kpack:
registry:
hostname: gcr.io
repository: gcr.io/cloudfoundry/capi
username: <username>
password: <password>
Rolling out changes to CAPI
./scripts/rollout.sh
will take any local changes tocapi-k8s-release
, apply them to a localcf-for-k8s
directory, and then deploycf-for-k8s
- Local
cf-for-k8s
directory can be overriden by settingCF_FOR_K8s_DIR