improve the Kubeflow Notebooks Docker image
See original GitHub issueCurrently, we provide docker images (elyra/kf-notebook
) for using Elyra with Kubeflow Notebooks, you can find the Dockerfile here.
We can improve this Dockerfile in the following ways:
- ~Stop using a
requirements.txt
approach, just explicitly usepip install
(makes it more clear)~ - Don’t switch
root
when installing python packages (as this makes the files not owned by thejovyan
user) - Update the base FROM image to:
public.ecr.aws/j1r0q0g6/notebooks/notebook-servers/jupyter:v1.3.0
- ~Explicitly install the
kfp
package (We could also just let Elyra’s requirements do this)~ - I don’t think
yarn
is strictly needed (is this a dependency of Elyra)?
Applying the above changes would give us the following Dockerfile:
FROM public.ecr.aws/j1r0q0g6/notebooks/notebook-servers/jupyter:v1.3.0
# install - kfp + elyra
RUN python3 -m pip install --no-cache-dir --use-deprecated legacy-resolver \
kfp==1.7.2 \
elyra==3.0.1
# build JupyterLab plugins
RUN jupyter lab build
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Container Images | Kubeflow
These images provide a common starting point for Kubeflow Notebook containers. See custom images to learn how to extend them with your own ......
Read more >Tutorial: Build Custom Container Images for a Kubeflow ...
Tutorial: Build Custom Container Images for a Kubeflow Notebook Server ... In this KubeFlow tutorial, we will build an end-to-end machine learning ...
Read more >Image Layer Details - atcommons/kubeflow-notebook:latest
Wasm is a fast, light alternative to Linux containers – try it out today with the Docker+Wasm Technical beta. ✕. hub.
Read more >Kubeflow Notebooks: ML Experimentation Made Easier — Part 2
The Kubeflow documentation provides a comprehensive list of what the custom images need to be able to run with Kubeflow Notebooks. For Kubeflow...
Read more >Kubeflow Fundamentals Part 6: Jupyter Lab Notebooks - Arrikto
Which development environment is available inside of Kubeflow (and which packages are installed) is determined by the Docker image used to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lresende I think we should have a “prod” one that installs from PyPi, and a “dev” one that compiles by building from the local repo.
(Most users will want a container image with exactly what they would get from
pip
for production, and will never need to use the “dev” one)Shouldn’t the Dockerfile include some reference to the source code in the repository? For example, if I wanted to make changes to the elyra distribution and test it in my stack, I would also need to update the Dockerfile which is making development tedious. I’d love to see closer integration to source rather than installing directly from pypi.