binderhub icon indicating copy to clipboard operation
binderhub copied to clipboard

Can't get eu.gcr.io working on binderhub k8s

Open ctr26 opened this issue 2 years ago • 1 comments

So I initially attempted the variant in the documentation but my gcloud account is limited to the eu. So I tried the eu.gcr.io variants which fail authorisation. The closest I got was having:

registry:
  url: https://gcr.io

config:
  BinderHub:
    use_registry: true
    image_prefix: eu.gcr.io/<google-project-id>/<prefix>-

Which asked my to got and authorise the service account I was using. But I didn't get much further than that. Has anyone had any success with location restricted gcr.io?

P.s. this is all working fine on my local machine regarding pushing and pulling images

ctr26 avatar Aug 12 '21 14:08 ctr26

If you run repo2docker locally can it push to eu.gcr.io?

It looks like the Helm Chart has a conditional that specifically checks for gcr.io: https://github.com/jupyterhub/binderhub/blob/731b92ffe9acb044de1466bb3e3cc6c4f3b1342e/helm-chart/binderhub/templates/_helpers.tpl#L30-L37

Maybe you could try modifying it?

manics avatar Sep 20 '21 17:09 manics