Skip to content
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

Building custom containers #126

Open
Peter9192 opened this issue Feb 8, 2022 · 4 comments
Open

Building custom containers #126

Peter9192 opened this issue Feb 8, 2022 · 4 comments

Comments

@Peter9192
Copy link
Collaborator

Currently the workflow for adding model (version)s to the eWaterCycle platform is (also see eWaterCycle/ewatercycle#294)

  1. make a dockerfile
  2. build docker image
  3. upload to dockerhub
  4. build singularity pulling from dockerhub
  5. use it

Step 3 and 4 can be combined by building from a local docker image, but it would be even better if we didn't need to convert between docker and singularity altogether.

One way to achieve this is to make docker available on the default infra
Another option is to switch from dockerfiles to something singularity understands (singularity definition file?)

@Peter9192
Copy link
Collaborator Author

@RolfHut FYI

@sverhoeven
Copy link
Member

In a previous version (v0.1.2) we had a Ansible role to install Docker that could be resurrected.

@sverhoeven
Copy link
Member

From a security perspective I would like to keep Docker away from the VM.

We could also use singularity run docker://sylabsio/lolcow:latest, this will build and cache image in users singularity cache folder. The first time will take a while to download/build for each user.

@Peter9192
Copy link
Collaborator Author

could also use singularity run docker://sylabsio/lolcow:latest

This still builds from a container image on dockerhub, right? The point of this issue is that you should be able to build/obtain a singularity/apptainer image without needing docker/dockerhub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants