mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 15:32:56 +00:00
Fix build (hope)
- miniconda versions and arguments - remove useless hd5 install (dependency of h5py) - pin the version of pyarrow
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# Ubuntu 20.04 (focal)
|
# Ubuntu 20.04 (focal)
|
||||||
# https://hub.docker.com/_/ubuntu/?tab=tags&name=focal
|
# https://hub.docker.com/_/ubuntu/?tab=tags&name=focal
|
||||||
# OS/ARCH: linux/amd64
|
# OS/ARCH: linux/amd64
|
||||||
ARG ROOT_CONTAINER=ubuntu:focal-20200729@sha256:6f2fb2f9fb5582f8b587837afd6ea8f37d8d1d9e41168c90f410a6ef15fa8ce5
|
ARG ROOT_CONTAINER=ubuntu:focal-20200916@sha256:028d7303257c7f36c721b40099bf5004a41f666a54c0896d5f229f1c0fd99993
|
||||||
|
|
||||||
ARG BASE_CONTAINER=$ROOT_CONTAINER
|
ARG BASE_CONTAINER=$ROOT_CONTAINER
|
||||||
FROM $BASE_CONTAINER
|
FROM $BASE_CONTAINER
|
||||||
@@ -19,6 +19,17 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
# Miniconda installation
|
||||||
|
# Default values can be overridden at build time
|
||||||
|
# (ARGS are in lower case to distinguish them from ENV)
|
||||||
|
# Check https://repo.anaconda.com/miniconda/
|
||||||
|
# Miniconda archive to install
|
||||||
|
ARG miniconda_version="4.8.3"
|
||||||
|
# Archive MD5 checksum
|
||||||
|
ARG miniconda_checksum="d63adf39f2c220950a063e0529d4ff74"
|
||||||
|
# Conda version that can be different from the archive
|
||||||
|
ARG conda_version="4.8.5"
|
||||||
|
|
||||||
# Install all OS dependencies for notebook server that starts but lacks all
|
# Install all OS dependencies for notebook server that starts but lacks all
|
||||||
# features (e.g., download as all possible file formats)
|
# features (e.g., download as all possible file formats)
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
@@ -76,15 +87,15 @@ RUN mkdir /home/$NB_USER/work && \
|
|||||||
fix-permissions /home/$NB_USER
|
fix-permissions /home/$NB_USER
|
||||||
|
|
||||||
# Install conda as jovyan and check the md5 sum provided on the download site
|
# Install conda as jovyan and check the md5 sum provided on the download site
|
||||||
ENV MINICONDA_VERSION=4.8.3 \
|
ENV MINICONDA_VERSION="${miniconda_version}" \
|
||||||
MINICONDA_MD5=d63adf39f2c220950a063e0529d4ff74 \
|
CONDA_VERSION="${conda_version}"
|
||||||
CONDA_VERSION=4.8.3
|
|
||||||
|
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh && \
|
RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh && \
|
||||||
echo "${MINICONDA_MD5} *Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh" | md5sum -c - && \
|
echo "${miniconda_checksum} *Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh" | md5sum -c - && \
|
||||||
/bin/bash Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR && \
|
/bin/bash Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR && \
|
||||||
rm Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh && \
|
rm Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh && \
|
||||||
|
# Conda configuration see https://conda.io/projects/conda/en/latest/configuration.html
|
||||||
echo "conda ${CONDA_VERSION}" >> $CONDA_DIR/conda-meta/pinned && \
|
echo "conda ${CONDA_VERSION}" >> $CONDA_DIR/conda-meta/pinned && \
|
||||||
conda config --system --prepend channels conda-forge && \
|
conda config --system --prepend channels conda-forge && \
|
||||||
conda config --system --set auto_update_conda false && \
|
conda config --system --set auto_update_conda false && \
|
||||||
@@ -92,7 +103,7 @@ RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda3-py38_${MINICONDA
|
|||||||
conda config --system --set channel_priority strict && \
|
conda config --system --set channel_priority strict && \
|
||||||
if [ ! $PYTHON_VERSION = 'default' ]; then conda install --yes python=$PYTHON_VERSION; fi && \
|
if [ ! $PYTHON_VERSION = 'default' ]; then conda install --yes python=$PYTHON_VERSION; fi && \
|
||||||
conda list python | grep '^python ' | tr -s ' ' | cut -d '.' -f 1,2 | sed 's/$/.*/' >> $CONDA_DIR/conda-meta/pinned && \
|
conda list python | grep '^python ' | tr -s ' ' | cut -d '.' -f 1,2 | sed 's/$/.*/' >> $CONDA_DIR/conda-meta/pinned && \
|
||||||
conda install --quiet --yes conda && \
|
conda install --quiet --yes "conda=${CONDA_VERSION}" && \
|
||||||
conda install --quiet --yes pip && \
|
conda install --quiet --yes pip && \
|
||||||
conda update --all --quiet --yes && \
|
conda update --all --quiet --yes && \
|
||||||
conda clean --all -f -y && \
|
conda clean --all -f -y && \
|
||||||
@@ -116,7 +127,7 @@ RUN conda install --quiet --yes 'tini=0.18.0' && \
|
|||||||
RUN conda install --quiet --yes \
|
RUN conda install --quiet --yes \
|
||||||
'notebook=6.1.4' \
|
'notebook=6.1.4' \
|
||||||
'jupyterhub=1.1.0' \
|
'jupyterhub=1.1.0' \
|
||||||
'jupyterlab=2.2.7' && \
|
'jupyterlab=2.2.8' && \
|
||||||
conda clean --all -f -y && \
|
conda clean --all -f -y && \
|
||||||
npm cache clean --force && \
|
npm cache clean --force && \
|
||||||
jupyter notebook --generate-config && \
|
jupyter notebook --generate-config && \
|
||||||
|
@@ -50,7 +50,8 @@ ENV PYTHONPATH="${SPARK_HOME}/python:${SPARK_HOME}/python/lib/py4j-${py4j_versio
|
|||||||
USER $NB_UID
|
USER $NB_UID
|
||||||
|
|
||||||
# Install pyarrow
|
# Install pyarrow
|
||||||
RUN conda install --quiet -y 'pyarrow' && \
|
RUN conda install --quiet --yes --satisfied-skip-solve \
|
||||||
|
'pyarrow=1.0.*' && \
|
||||||
conda clean --all -f -y && \
|
conda clean --all -f -y && \
|
||||||
fix-permissions "${CONDA_DIR}" && \
|
fix-permissions "${CONDA_DIR}" && \
|
||||||
fix-permissions "/home/${NB_USER}"
|
fix-permissions "/home/${NB_USER}"
|
||||||
|
@@ -22,20 +22,17 @@ RUN conda install --quiet --yes \
|
|||||||
'bottleneck=1.3.*' \
|
'bottleneck=1.3.*' \
|
||||||
'cloudpickle=1.6.*' \
|
'cloudpickle=1.6.*' \
|
||||||
'cython=0.29.*' \
|
'cython=0.29.*' \
|
||||||
'dask=2.26.*' \
|
'dask=2.25.*' \
|
||||||
'dill=0.3.*' \
|
'dill=0.3.*' \
|
||||||
'h5py=2.10.*' \
|
'h5py=2.10.*' \
|
||||||
# hdf5 update to > 1.10 fails resolving deps
|
|
||||||
'hdf5=1.10.*' \
|
|
||||||
'ipywidgets=7.5.*' \
|
'ipywidgets=7.5.*' \
|
||||||
'ipympl=0.5.*'\
|
'ipympl=0.5.*'\
|
||||||
'matplotlib-base=3.3.*' \
|
'matplotlib-base=3.3.*' \
|
||||||
# numba update to > 0.49 fails resolving deps
|
'numba=0.51.*' \
|
||||||
'numba=0.48.*' \
|
|
||||||
'numexpr=2.7.*' \
|
'numexpr=2.7.*' \
|
||||||
'pandas=1.1.*' \
|
'pandas=1.1.*' \
|
||||||
'patsy=0.5.*' \
|
'patsy=0.5.*' \
|
||||||
'protobuf=3.13.*' \
|
'protobuf=3.12.*' \
|
||||||
'pytables=3.6.*' \
|
'pytables=3.6.*' \
|
||||||
'scikit-image=0.17.*' \
|
'scikit-image=0.17.*' \
|
||||||
'scikit-learn=0.23.*' \
|
'scikit-learn=0.23.*' \
|
||||||
|
Reference in New Issue
Block a user