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

Add Dockerfile #11

Open
JulienPeloton opened this issue Apr 6, 2021 · 6 comments
Open

Add Dockerfile #11

JulienPeloton opened this issue Apr 6, 2021 · 6 comments

Comments

@JulienPeloton
Copy link
Member

No description provided.

@bregeon
Copy link
Contributor

bregeon commented Jul 1, 2021

ok, may be that one is also kind of deprecated, but I have spent the day (obviously thought it would take me 15'...) to come up with a build script for a Singularity container.
The file is here:
Singularity

Instructions:

  • Build with singularity build --fakeroot fink.sif Singularity
  • Run with singularity run fink.sif
  • Open the link in your browser (even from the host)

Comments:

  • It's Singularity and not docker because I like better Singularity (and it makes things easier), but it's a good base to make also a docker file.
  • I initially wanted to start from the continuum/miniconda3 image, but I failed to do so, because I am not familiar (I hate!) debian distributions.
  • I only launched it once, and it worked, it's clearly not heavily tested.
  • If it's useful, I for sure take comments for improvements, and I am ready to work on the docker file as well.

@bregeon
Copy link
Contributor

bregeon commented Jul 1, 2021

just so that I do not loose that link:
https://hub.docker.com/r/continuumio/miniconda3

@JulienPeloton
Copy link
Member Author

Thanks! I am not an expert at Singularity, and this is definitely very useful :-) Did you try this one at CC-IN2P3 for example?

I will also push the Dockerfile asap, and come back to the singularity file to see if one needs additional installation. I remember one useful thing I used was the possibility to mount volumes with Docker (so that if you save things on the container, it is also saved in the host machine). This is done at runtime with Docker, e.g.

# mount $PWD host at /home/jovyan/work in the container
docker run -it --rm  -v $PWD:/home/jovyan/work:rw [etc]

What would be the equivalent for Singularity?

@bregeon
Copy link
Contributor

bregeon commented Jul 2, 2021

Thanks! I am not an expert at Singularity, and this is definitely very useful :-) Did you try this one at CC-IN2P3 for example?

I tried to run a shell in the container at CC and it works.

What would be the equivalent for Singularity?

Singularity automatically mounts the user $HOME by default.

@JulienPeloton
Copy link
Member Author

@bregeon I updated the repo with the latest material (#17 ). Could you update your fork, and open a new PR with your installation & Singularity scripts? Thanks!

@bregeon
Copy link
Contributor

bregeon commented Jul 7, 2021

@JulienPeloton I have created #19 with just adding the Singularity file to start with.

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