-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OpenScapes] Set up user_profiles and the image version updater bot #1432
Comments
We'll want to use the image bumper for this: https://github.com/sgibson91/bump-jhub-image-action The project you linked to bumps version of sub-charts in helm charts, not image tags :) We already have the image bumper running in this repo so it's just a case of updating openscapes config and then adding the appropriate entries into that matrix: https://github.com/2i2c-org/infrastructure/blob/master/.github/workflows/bump-image-tags.yaml I am also writing up docs about the two actions as we speak: |
I think next steps are establishing which/how many profiles they would like. For each profile, we would need to know i) which machine type they want that profile to have, and ii) the image name they want that profile to have. If the environment images don't yet exist, I would recommend the documentation on using our hub image template to create them :) For reference, here are the machine sizes already available to the openscapes cluster: infrastructure/eksctl/openscapes.jsonnet Lines 14 to 36 in 008ae2c
|
Also reading this again, we may need |
@sgibson91 that is only required if we want to offer 'sub-options' inside a profile. The profiles themselves can each offer an image. See https://github.com/2i2c-org/infrastructure/blob/master/config/clusters/m2lines/common.values.yaml#L94 |
@yuvipanda I know - I'm reading "They'd also like each environment to be paired with a few different machine types" as meaning they'd like user profiles with different images, with sub-options of machine types. But some clarity from the openscapes folks would be helpful here. |
Pinging @betolink as the best person to speak to this :) |
@yuvipanda @sgibson91 thanks for taking a look at this! In an ideal case scenario we would like to see something like this: Hub users could select which environment they want to use and then the machine type. These environments will be using whatever the latest tags are in the registry(Dockerhub for now). Ultimately we are looking for a mechanism to sync up our Docker images with the Openscapes hub. Chris mentioned a Github action you folks were testing, I think it updates |
Thanks @betolink! #1253 is something we've been developing for the Pangeo hubs and basically allows the same thing (although I think the UI looks a little different). So a user can select an image tag from a drop-down and then merge that selection with a machine type.
Yes we have that which would be a good fallback option until we unblock the above issue and can roll out the UI you'd prefer. |
Thanks @sgibson91 ! yeah it's basically the same. If that can be implemented in our hub it would be amazing! So far we have the Python and R images,(Matlab is next). We can use |
@betolink we are unfortunately blocked on deploying that particular UI until we migrate all our hubs to z2jh/JupyterHub 2.0, but we can set you up with some "good enough" profiles for now while we push the migration forward? Or would you prefer to stick with what you have until we've upgraded? |
@sgibson91 Good enough profiles are fine for now, I'm planning in publishing the images at Dockerhub this week. python -> once these are published we can test them on the staging hub and then prod. thanks for all the work! |
@betolink awesome! lmk once these are published and I can set these up |
Hi @yuvipanda! The Python and R images are now available in Docker hub, if you don't mind setting them up in our staging hub that would be great! Matlab will have to wait for now. Thanks a lot!
the latest tags are using the last commit hash and |
@betolink awesome! I'll get to this soon. |
our matlab image is now available at |
Hi @yuvipanda this is awesome, and thanks for thinking about it in between SciPy! Would it be possible to re-name the "Rocker" one to R? On our side, we named it "Rocker" because Docker wouldn't allow a single letter ("R"). Not sure that's a constraint here (and I realize it's an extra step to rename it here), but just thinking that many R users likely won't understand "Rocker" to mean R |
@jules32 absolutely, no problem. Would you want the R one to start on RStudio by default or JupyterLab? |
Can also have the matlab variant start in matlab. |
Unfortunately whenever you update the docker image, you've to make a PR to this repo updating the tags here: https://github.com/2i2c-org/infrastructure/pull/1524/files#diff-3e6a6aaa229aa8ec507fc308feb5b502a0683705283d6c0497e3d991339f6a0fR80. The configurator doesn't support profiles yet :( |
Thanks @yuvipanda ! Let's have R start in RStudio, thanks. Is the PR for tags because of this rename to "R" from "Rocker"? I think @betolink was expecting a PR but wanted to confirm it's the same |
It isn't because of the name change. The configurator ui just doesn't support profiles yet, so the PR is unfortunately necessary until that is added. |
@yuvipanda I can setup the bump-jhub-image-action to automatically open the PRs for these |
@sgibson91 perfect! |
@yuvipanda I opened #1533 and requested your review :) |
Since #1533 is merged, I think we can close this one now. |
Context
In a recent conversation with @jules32 and @betolink we discussed some challenges that they're having around their environment as it becomes more complex. In the conversation we arrived at roughly the following:
user_profiles
, BUT:configurator
to modify their image so far, and this is not compatible withuser_profiles
.Proposal
Ultimately, the thing they want to do is keep each of their environment images up-to-date as much as possible. We discussed two options:
latest
somehow in their hub configuration for each image. However I'm not sure if this is possible.Are either of those two options realistic? Can we help them out with one of these options?
Updates and actions
No response
The text was updated successfully, but these errors were encountered: