-
Notifications
You must be signed in to change notification settings - Fork 7
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
Extract conda-lock workflow into standalone GitHub Action? #18
Comments
hi @weiji14 i like the 2nd option of always installing from a lockfile. the |
Yeah, I agree that lockfiles are good for reproducible environments. I know pangeo-docker-images is currently installing from explicit lockfiles ( What are your thoughts @scottyhq from a maintenance perspective? This issue is really to discuss where best to put the 'install-from-lockfiles' piece of code in the context of building reproducible docker images. Should this be added to And yes, the |
Good questions! The goal is to have a reproducible environment installed either in CI or locally and right now you either have to 1. render a bunch of files with platform-specific locked packages or 2. have people install conda-lock and install the environment from there. (or 3. use Docker everywhere) Short term, I'm supportive of moving to embracing a single conda-lock.yml and consequently micromamba or conda-lock in the CI workflow. I don't always want to use repo2docker because it can be helpful to have more control over the Dockerfile. But ultimately, a way to contribute upstream and have the widest impact might be to help standardize the |
Yes, and for GitHub Actions CI, using the unified
Agree, having the While we wait for those ☝️ to be implemented by smart people, is a |
I'd love for the CondaLock.yml thingy to be packaged up and moved into a default, especially in a form that can also handle pip dependencies. Additionally, I think it should also autorun and not require a chatops command. If we can make that work, I'd love to incorporate that into https://github.com/2i2c-org/hub-user-image-template/ :) |
Coming back after the holidays, @weiji14 do you think you would be able to work on this? :) |
I'm currently back in Malaysia visiting family, and won't have much capacity until mid Feb at least. You can start working on some pieces first if you're interested! |
@weiji14 oooh have fun! I don't think I'll have much time either, so this can wait :) |
Just noticed that My thought is that we should wait for a Since this |
I've got a conda-lock composite GitHub Action over at https://github.com/weiji14/conda-lock-refresh, and a working demo over at weiji14/conda-lock-refresh-demo#6 that seems to be working for a simple user repo. As a next step, it would be good to test things out a bit on a organization repo + forked repos to make sure things like permissions work ok, and would like to use this CryoCloud hub-image repo as a test if people are ok with it. It would involve replacing the I'll open up a few PRs in the next few days to get things implemented, and if it works well, I'll look at transferring the GitHub Action repo over to a proper organization, cc @yuvipanda. |
Continuing discussion on whether to move some of the
conda-lock
related automation into a standalone GitHub Actions Continuous Integration workflow that can be shared with https://github.com/pangeo-data/pangeo-docker-images or other people.Originally posted by @yuvipanda in #13 (comment)
To be clear, do we mean:
/condalock
command added in Add slash command /condalock to autogenerate conda-lock files #5, which I think pangeo-docker-images has a version of already maintained by @scottyhq?conda-incubator/setup-miniconda
fails when usingconda-lock.yml
conda/conda-lock#245 (comment) and apparently there might be something re-usable already at https://github.com/mamba-org/provision-with-micromamba#example-with-customization?The text was updated successfully, but these errors were encountered: