-
Notifications
You must be signed in to change notification settings - Fork 7
2022-11-07 jupyterlab surface topography docker recipe #20
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
base: master
Are you sure you want to change the base?
Conversation
|
@sannant do you want to modify the packages in docker/jupyterlab/jupyterlab-SurfaceTopography/requirements.in a little and put in whatever a public image should have? I'd then be happy to build and push this to docker hub. |
|
Yes, you mean adding all the ContactMechanics and Adhesion stuff I want ? |
|
Since ContactMechanics needs to be installed after SurfaceTopography, I should also modify the DockerFile, right ? |
Right now, the so let's just stick it into the |
…dding to requirements.txt
|
@sannant, contactmechanics depends on mpi4py and an MPI installation, is that avoidable? |
|
It shouldn't depend on that |
|
https://github.com/ContactEngineering/ContactMechanics/blob/master/requirements.txt https://github.com/ContactEngineering/ContactMechanics/blob/master/setup.py And see how we test and build here. python3 -m pip install -r requirements.txt --no-binary setuptools_scm --no-binary numpy |
|
Via |
|
Well you already install muFFT in SurfaceTopography, I do not understand |
|
Hm then I also don't understand anymore. |
|
I understand now. Because I pin the versions locally (and I have MPI installed locally), muFFT automatically inserts that mpi4py dependency! |
Sorry, didn't reply to this one yet. Yes, please, as long as it doesn't blow up the container to 20 GB. And my apologies for blaming an mpi dependency on ContactMechanics, that was due to muFFT adding the dependency automatically when detecting an MPI installation in the environment, https://gitlab.com/muspectre/muspectre/-/blob/master/setup.py#L672 |
This is basically a recipe building on the https://jupyter-docker-stacks.readthedocs.io/en/latest/ jupyterlab docker stack, adding a ipython kernel that "breaks out" of the default conda environment within these containers and installs a simple list of packages from
requirements.txt. TheSurfaceTopographypackage (https://github.com/ContactEngineering/SurfaceTopography) needs some special treatment, without it the recipe coul look much simpler.I launch such images on bwCloud, the
README.mdfile documents to a certain extent how.Hope that works for you !