-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
refactor of "add" to generate a container.yaml first to close #519 #520
Conversation
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1614424
to
9ec4fad
Compare
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
this set of changes re-organizes the container template to be under the container module, and also moves around some code in modules and container (base.py and config.py) because in development I find the current locations not intuititve enough. Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@georgiastuart and @marcodelapierre will you have time to review this? I think it's mostly ready to go! |
Running into the above issue, unfortunately! |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@georgiastuart good to go? |
We're getting thrashed by storms (Austin, TX) so I unplugged my computer 😂 I'll run through the steps on our cluster ASAP once I'm back online. |
Ohno!! Please stay safe! |
shpc add docker://tensorflow/tensorflow:2.7.1-gpu tensorflow:2.7.1-gpu
shpc install tensorflow results in
I would expect
I also tried: shpc add docker://tensorflow/tensorflow:2.7.1-gpu georgia/tensorflow:2.7.1-gpu
shpc install georgia/tensorflow And it also resulted in |
I think I anticipated this - it was a design decision to have the modules derives from the container name, and then to honor the namespace. So should we even support the custom namespace? Do you see reasons, for example, for having two tensorflow installs with the same container? My suggestion / thinking is that we should tweak the docs to not allow a custom namespace for the docker URI and honor/ maintain the namespace until there is a compelling reason to not. |
If it's a design decision, I think not supporting custom namespaces at all would be better since I would expect it to carry over to the module name. I think it's more confusing to have a registry entry named one thing and the module named another, but that's just my two cents! So I think the options should either be
|
Ok great! I totally agree. Let me update the PR to support that. |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@georgiastuart all set with changes! |
I think it's good to go! I was able to run through the add process just fine. |
Also note that ``add`` is only supported for Singularity, as Docker and Podman containers are | ||
typically provided via registries. If you are looking for support for add for another | ||
container technology, please `open a new issue <https://github.com/singularityhub/singularity-hpc/issues>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @vsoch . This seems to contradict the lines above 🤔 . Is Docker supported ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old add didn't support docker/podman - e.g., the old add would say "take this .sif on my filesystem and manually move it into shpc." The new add (which generates a container.yaml for you) indeed has support!
* If the container is deleted, the module has to be deleted too. No need to ask the user (#528) * Only ask for confirmation once * The .version file is only in module_dir, not container_dir * When deleting containers, also delete the parent directories as long as they are empty * `shpc add` now supports Docker cf #520 (comment) * round 2 of attempted updates! I saved the original registry this time so I should not need to open a new PR for every attempt * remove debug ipython * Adding more clear error message when tag is not known (#543) * adding more clear error message when tag is not known
* adding support for update * preview of changes done by shpc update (#541) * If the container is deleted, the module has to be deleted too. No need to ask the user (#528) * Only ask for confirmation once * The .version file is only in module_dir, not container_dir * When deleting containers, also delete the parent directories as long as they are empty * `shpc add` now supports Docker cf #520 (comment) * round 2 of attempted updates! I saved the original registry this time so I should not need to open a new PR for every attempt * remove debug ipython * Adding more clear error message when tag is not known (#543) * adding more clear error message when tag is not known Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch vsoch@users.noreply.github.com