question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

improve the Kubeflow Notebooks Docker image

See original GitHub issue

Currently, 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 use pip install (makes it more clear)~
  • Don’t switch root when installing python packages (as this makes the files not owned by the jovyan 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:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
thesuperzappercommented, Sep 9, 2021

@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)

1reaction
marcjimzcommented, Sep 9, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found