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

Using local images #294

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

Using local images #294

Peter9192 opened this issue Feb 4, 2022 · 2 comments

Comments

@Peter9192
Copy link
Collaborator

Adding to this: If I'm working on a (new) model I would like to test it without having to upload my 'in between' work to dockerhub. Is there a way to build a docker image and singularity image without it being on the hub?

Originally posted by @RolfHut in #292 (comment)

@Peter9192
Copy link
Collaborator Author

@RolfHut you can build your docker images locally like so:

cd directory_with_dockerfile
docker build .

The docker image will now show in my list of docker images (docker images), e.g.

peter@laptop: ~/ewatercycle/genericDistributedModel$ docker images
python                         3.8        7684fd0fc298   6 days ago       885MB

Now I should already be able to use that with ewatercycle with container_engine set to docker.

If you want to build a singularity images from a local docker file, you can do it like so (with singularity > 3):

peter@laptop: ~/ewatercycle/genericDistributedModel$ singularity build testimg.sif docker-daemon://python:3.8
INFO:    Starting build...
Getting image source signatures
Copying blob 0b0f2f2f5279 done
Copying blob 6398d5cccd2c done
...
INFO:    Creating SIF file...
INFO:    Build complete: testimg.sif

Does this help?

@RolfHut
Copy link
Contributor

RolfHut commented Feb 4, 2022

for researchCloud I need Singularity (right?) So this means I will also need to install singularity on my local machine. Will try that.

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

No branches or pull requests

3 participants