Hi, I’m aiming at pre installing python packages for my JH Kubernetes deployment.
Could you guide me to documentation or some guide on doing it?
Thank you,
Hi, I’m aiming at pre installing python packages for my JH Kubernetes deployment.
Could you guide me to documentation or some guide on doing it?
Thank you,
Since you are using Kubernetes, you have to build a custom Docker image, most likely based on one of the official Jupyter Docker images. For example:
# Make sure to match your JupyterHub application version
FROM quay.io/jupyter/datascience-notebook:hub-5.2.1
USER root
# Install OS packages, dependencies, packages, ...
# For example:
RUN pip install jupyter-ai[all]
USER jovyan
After building and probaly pushing your image to a public or private Docker image registry (e.g., DockerHub, GitHub CR, …), you have to specify the Docker image in your Helm config:
Thank you! I created one and I wrote the name of the image in singleuser.image.name
in the value.yaml of the helm chart
FROM quay.io/jupyter/base-notebook:latest
USER root
# Install OS packages, dependencies, packages, ...
# For example:
#RUN pip install jupyter-ai[all]
RUN pip install --no-cache-dir minio pandas
USER jovyan
But the deployment does not succeed; the hook-image-puller pods do not run.
I tried running the image as a single image, it throws the following error:
> k logs jhminio
exec /usr/bin/tini: exec format error
Looking forward for some hints.
Can you please ensure that you are running the correct image? I just built your image myself, and it’s working just fine.