Closed consideRatio closed 1 year ago
The demo to deploy and use a binderhub in a "build only" mode through its REST API is now demonstrated, and the checkboxes for this issue is resolved. Future work is planned in https://github.com/2i2c-org/binderhub-service/issues/27, and below is a gif animation of using the CLI curl
to access the REST API in the deployment to a k8s cluster on GCP.
@GeorgianaElena has made https://github.com/jupyterhub/binderhub/pull/1647 functional, and we have also worked to make a Helm chart deploy binderhub using that not yet merged feature-branch.
When the image is built and pushed, we don't directly launch. BinderHub has started without coupling to JupyterHub, built an image, and pushed it to a container registry.
Development
For a test deployment and demo we need a few things to come into place.
Software preparation
c.BinderHub.require_build_only
https://github.com/jupyterhub/binderhub/pull/1647Chart preparation
18
Testing
Testing deployment
We can test things locally or in a CI system, but we have setup a k8s cluster to test things in a production similar environment for now to also enable easier demoing of the results.
[x] Write notes about the helm commands to install / upgrade, and with what config
Once installed, we can access the binderhub REST API. @GeorgianaElena and I have done this in a not convenient way of first opening a network connection to binderhub's UI:
Then we were able to make a build from curl like this:
KubernetesBuildExecutor.push_secret
Testing procedure
curl
to for examplehttp://localhost:8585/build/gh/binderhub-ci-repos/cached-minimal-dockerfile/HEAD?build_only=true
is sufficient.