feloy / registry-support

Provide support for devfile registries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

registry-support

Apache2.0 License

Provide support for devfile registries

Issue tracking repo: https://github.com/devfile/api with label area/registry

Build

If you want to run the build scripts with Podman, set the environment variable export USE_PODMAN=true

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

Deploy

Via the Devfile Registry Operator

We recommend using the Devfile Registry Operator to install a Devfile Registry on your Kubernetes or OpenShift cluster. Consult its Readme for more information.

Via the Devfile Registry Helm Chart

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

You can deploy a devfile registry with a custom registry viewer image (uses quay.io/devfile/registry-viewer:next by default) by running the following:

$ 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 \
	--set registryViewer.image=quay.io/someuser/registry-viewer \
	--set registryViewer.tag=latest

You can deploy a headless devfile registry (i.e. without the registry viewer) by specifying --set global.headless=true which will look like:

$ helm install devfile-registry ./deploy/chart/devfile-registry \
    --set global.ingress.domain="$(minikube ip).nip.io" \
	--set global.headless=true \
	--set devfileIndex.image=quay.io/someuser/devfile-index \
	--set devfileIndex.tag=latest

For more information on the Helm chart, consult its readme.

Contributing

Please see our contributing.md.

About

Provide support for devfile registries

License:Apache License 2.0


Languages

Language:Go 92.3%Language:Shell 5.9%Language:Dockerfile 1.4%Language:Smarty 0.4%