-
Notifications
You must be signed in to change notification settings - Fork 3k
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 ROOT_CONTAINER
to base-notebook
#1001
Conversation
Add another layer of abstraction to the base container, namely the root container `ROOT_CONTAINER`, so that the user can have the flexibility to build the whole series of images with `make` based on a different base image.
Thanks @guoquan. This makes sense to me. It might be nice to add it to the documentation so people know it's available and how to use it. We shouldn't hold this PR for that: you or someone else looking to contribute can send a separate PR with the documentation changes. |
Ah, now I see it!!! I was confused why This is the solution to the sub-issue raised in #1015. |
Hi, I was looking for a solution like that myself, but was too stupid to get this, so I've created a script that concatenates, see #1015
this will pull the standard image from |
Ah, right, Having a quick look at the Dockerfile reference for FROM and ARG, my first thought is that maybe we could pass |
It seems this would not work as expected because it will pull from either the registry (which is not CUDA) or cache (which might not be CUDA as @maresb mentioned). I do not have any idea if docker build has such a mechanism to rebuild parent base on ARG. My quick thought would be relying on makefile to maintain the dependency and force rebuild locally. It could be possible to avoid some rebuild by setting and checking |
Add another layer of abstraction to the base container, namely the root container
ROOT_CONTAINER
, so that the user can have the flexibility to build the whole series of images withmake
based on a different base image.For example, one can build a CUDA stack, though you guy might not like this example, by:
DARGS="--build-arg ROOT_CONTAINER=nvcr.io/nvidia/cuda:10.2-runtime-ubuntu18.04" make build-all