To stop binderhub after the image push in repository

So my use-case is to use the binder-hub to convert the GIt repository of notebooks to image, currently I’m able to push the image to repository and able to spin up the kubernetes pod.

But i don’t want to spin up the kubernetes pod and the binder-hub should exit once the image gets pushed into the repository.

Can anyone suggest, how to do this? is there any settings already available.

In theory you could write a custom JupyterHub spawner that just returns an error instead of launching a server, but that’s not very user friendly.

BinderHub uses a command-line tool repo2docker to build the images:

You might be better off using that instead?