Repository navigation
Closed
Description
Hi guys, the notebook image fails to build.
Error logs:
...
Building notebook
Step 1/18 : ARG base
Step 2/18 : FROM $base/base-notebook:lab
---> c7db4e28678e
Step 3/18 : ARG release
---> Using cache
---> 90cf124a14f8
Step 4/18 : ARG python
---> Using cache
---> 24a432cda77e
Step 5/18 : USER root
---> Using cache
---> 2f445b9b3f50
Step 6/18 : ENV PYTHON_VERSION=${python}
---> Using cache
---> 6a11a421a367
Step 7/18 : ENV DASK_VERSION=${release}
---> Using cache
---> 43e6884f4e13
Step 8/18 : RUN echo "jovyan ALL = NOPASSWD : /usr/bin/apt-get , /usr/bin/apt" >> /etc/sudoers
---> Using cache
---> f8516018292b
Step 9/18 : RUN apt-get update && apt-get install -yq --no-install-recommends curl graphviz git && apt-get clean && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 782037c23e8f
Step 10/18 : RUN MAGICARCH=$(dpkg --print-architecture) && curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/${MAGICARCH}/kubectl" && mkdir -p /usr/local/bin && mv ./kubectl /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl && kubectl version --client
---> Using cache
---> ebc5739b7de7
Step 11/18 : USER $NB_USER
---> Using cache
---> 695f3a42477c
Step 12/18 : RUN mamba install -y python=${PYTHON_VERSION} nomkl python-blosc cytoolz dask==${DASK_VERSION} lz4 numpy pandas ipywidgets cachey streamz "dask-labextension>=5" && mamba clean -tipy && jupyter lab clean && jlpm cache clean && npm cache clean --force && find /opt/conda/ -type f,l -name '*.a' -delete && find /opt/conda/ -type f,l -name '*.pyc' -delete && find /opt/conda/ -type f,l -name '*.js.map' -delete && (find /opt/conda/lib/python*/site-packages/bokeh/server/static -type f,l -name '*.js' -not -name '*.min.js' -delete || echo "no bokeh static files to cleanup") && rm -rf /opt/conda/pkgs
---> Running in 6cee7ba200e6
Looking for: ['python=3.8', 'nomkl', 'python-blosc', 'cytoolz', 'dask==2022.10.2', 'lz4', 'numpy', 'pandas', 'ipywidgets', 'cachey', 'streamz', "dask-labextension[version='>=5']"]
Pinned packages:
- python 3.10.6
Encountered problems while solving:
- conflicting requests
ERROR: Service 'notebook' failed to build : The command '/bin/bash -o pipefail -c mamba install -y python=${PYTHON_VERSION} nomkl python-blosc cytoolz dask==${DASK_VERSION} lz4 numpy pandas ipywidgets cachey streamz "dask-labextension>=5" && mamba clean -tipy && jupyter lab clean && jlpm cache clean && npm cache clean --force && find /opt/conda/ -type f,l -name '*.a' -delete && find /opt/conda/ -type f,l -name '*.pyc' -delete && find /opt/conda/ -type f,l -name '*.js.map' -delete && (find /opt/conda/lib/python*/site-packages/bokeh/server/static -type f,l -name '*.js' -not -name '*.min.js' -deleDescribe the issue:
Docker image for notebook service fails to build due to recent updates at jupyter / docker-stacks.
Minimal Complete Verifiable Example:
cd build
# Use legacy builder as buildkit still doesn't support subdirectories when building from git repos
export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0
docker-compose buildAnything else we need to know?:
It seems like Dockerfile at jupyter / docker-stacks / base-notebook has been updated recently.
The image can be built fine if I pin the commit to 5168eb6 as following at build / docker-compose.yml:
...
base-notebook:
build:
context: github.com/jupyter/docker-stacks.git#5168eb6548a3411332f9ce996fff7f4edb80f04d:base-notebook
dockerfile: Dockerfile
args:
PYTHON_VERSION: "3.8"
image: daskdev/base-notebook:lab
...Environment:
wsl2 ubuntu / docker version 20.10.10, build b485636
p.s.
Really loved the repository! :)
Metadata
Metadata
Assignees
Labels
No labels
Activity
charlesbluca commentedon Nov 16, 2022
Looks like the underlying issue here is jupyter/docker-stacks#1825, which essentially renamed the Jupyter
base-notebookimage todocker-stacks-foundationand madebase-notebookan image that derives from it but pins python 3.10.I've opened #263, which should resolve this