Provide support for devfile registries
Issue tracking repo: https://github.com/devfile/api with label area/registry
To build all of the components together (recommended) for dev/test, run ./build_registry.sh
to build a Devfile Registry index image that is populated with the mock devfile registry data under tests/registry/
.
Once the container has been pushed, you can push it to a container registry of your choosing with the following commands:
docker tag devfile-index <registry>/<username>/devfile-index:latest
followed by
docker push <registry>/<username>/devfile-index:latest
We recommend using the Devfile Registry Operator to install a Devfile Registry on your Kubernetes or OpenShift cluster. Consult its Readme for more information.
Alternatively, a Helm chart is also provided if you do not wish to use an operator. To install (with Helm 3) run:
$ helm install devfile-registry ./deploy/chart/devfile-registry \
--set global.ingress.domain=<ingress-domain> \
--set devfileIndex.image=<index-image> \
--set devfileIndex.tag=<index-image-tag>
Where <ingress-domain>
is the ingress domain for your cluster, <index-image>
is the devfile index image you want to deploy, and <index-image-tag>
is the corresponding image tag for the devfile index image.
For example, if you're installing your own custom devfile registry image for dev/test purposes on Minikube, you might run:
$ helm install devfile-registry ./deploy/chart/devfile-registry \
--set global.ingress.domain="$(minikube ip).nip.io" \
--set devfileIndex.image=quay.io/someuser/devfile-index \
--set devfileIndex.tag=latest
For more information on the Helm chart, consult its readme.