2i2c-org / infrastructure

Infrastructure for configuring and deploying our community JupyterHubs.
https://infrastructure.2i2c.org
BSD 3-Clause "New" or "Revised" License
103 stars 63 forks source link

Create a BinderHub helm chart in the infrastructure repo #1280

Closed sgibson91 closed 2 years ago

sgibson91 commented 2 years ago

Originally posted by @yuvipanda in https://github.com/2i2c-org/infrastructure/issues/919#issuecomment-1116347379

Tasks

sgibson91 commented 2 years ago

I have opened a very basic PR here: https://github.com/2i2c-org/infrastructure/pull/1289

sgibson91 commented 2 years ago

Some notes after chatting with @yuvipanda

damianavila commented 2 years ago

Potential upstream work in the future may also change how our charts compose against z2jh

Can you drop some thoughts/details about this one? Thanks!

sgibson91 commented 2 years ago

Can you drop some thoughts/details about this one? Thanks!

Chris wrote about it here https://github.com/2i2c-org/infrastructure/issues/1382

damianavila commented 2 years ago

Chris wrote about it here https://github.com/2i2c-org/infrastructure/issues/1382

I might be missing something... but I see high-level stuff on that issue (and there in proposal). I was a little bit more interested in the technical details about:

change how our charts compose against z2jh

Feel free to point me out to existing notes/docs about that discussion if those already exist.

sgibson91 commented 2 years ago

@damianavila I think the point is that we don't know. I'm not even sure if the BinderHub chart will even continue to exist if you can use repo2docker to built images directly in z2jh 🤷🏻‍♀️ Until that issue I linked to has more technical details, I can't say for sure what the future of this chart will be.

sgibson91 commented 2 years ago

Issue I'm having with the binderhub helm chart:

How to resolve?

@yuvipanda would really appreciate your input here

sgibson91 commented 2 years ago

@choldgraf and I chatted today and we will open a post on Pangeo's Discourse forum to get input on the urgency of a Binder on GCP in the community. If it's not that urgent, it will probably be better to redirect the operational toil into https://github.com/2i2c-org/infrastructure/issues/1382 instead of developing a million hacks to get a Pangeo Binder up now that will only have to change once that work is underway.

yuvipanda commented 2 years ago

@sgibson91 I think just copying them over is ok for now too.

Alternatively, we just completely ignore basehub and just copy over whatever is in https://github.com/jupyterhub/mybinder.org-deploy, remove what isn't needed and get that going.

sgibson91 commented 2 years ago

@yuvipanda and I had a quick chat about moving this forward in a quicker manner. Plan is the following:

sgibson91 commented 2 years ago
  • Terraform update to deploy GCR and push images there (instead of my personal Docker Hub account)

@yuvipanda I noticed that our GCP terraform config is already setup to create a GAR, so maybe we should use that instead of GCR?

Transition notes: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr

yuvipanda commented 2 years ago

@sgibson91 oooh yes using GAR would be perfect.

sgibson91 commented 2 years ago

@yuvipanda I requested your review on https://github.com/2i2c-org/infrastructure/pull/1442

sgibson91 commented 2 years ago

I believe https://github.com/2i2c-org/infrastructure/pull/1404 is now ready to be reviewed/merged

sgibson91 commented 2 years ago

I also now have config that successfully pushes the built images to GAR instead of my Docker Hub account! But I'd like to get #1404 merged first so I can rebase without force pushing anything.

sgibson91 commented 2 years ago

Following PR enables the GAR. It's already deployed though!

sgibson91 commented 2 years ago

Last task to close this issue:

Associated PR:

sgibson91 commented 2 years ago

Woohoo! I'm calling this one closed! 🎉