Skip to content

Do not update permissions for user cache #2295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/using/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ You can use either `mamba`, `pip`, or `conda` (`mamba` is recommended) to instal
# the installation
mamba install --yes some-package && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down Expand Up @@ -285,6 +286,7 @@ conda config --system --prepend channels defaults
# install a package
mamba install --yes humanize && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
```
Expand Down
1 change: 1 addition & 0 deletions docs/using/recipe_code/dask_jupyterlab.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM $BASE_IMAGE
# Install the Dask dashboard
RUN mamba install --yes 'dask-labextension' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down
1 change: 1 addition & 0 deletions docs/using/recipe_code/ijavascript.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ USER ${NB_UID}
# https://github.com/n-riesco/ijavascript/issues/184
RUN mamba install --yes nodejs=20.* && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down
1 change: 1 addition & 0 deletions docs/using/recipe_code/jupyterhub_version.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ FROM $BASE_IMAGE

RUN mamba install --yes 'jupyterhub-singleuser==5.2.1' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
2 changes: 2 additions & 0 deletions docs/using/recipe_code/mamba_install.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ FROM $BASE_IMAGE

RUN mamba install --yes 'flake8' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Install from the requirements.txt file
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
RUN mamba install --yes --file /tmp/requirements.txt && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions docs/using/recipe_code/microsoft_odbc.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ USER ${NB_UID}

RUN mamba install --yes 'pyodbc' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions docs/using/recipe_code/oracledb.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ WORKDIR "${HOME}"
# Install `oracledb` Python library to use Oracle SQL Instant Client
RUN mamba install --yes 'oracledb' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions docs/using/recipe_code/rise_jupyterlab.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ FROM $BASE_IMAGE

RUN mamba install --yes 'jupyterlab_rise' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions docs/using/recipe_code/xgboost.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ FROM $BASE_IMAGE

RUN mamba install --yes 'py-xgboost' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions docs/using/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ FROM quay.io/jupyter/pyspark-notebook

RUN mamba install --yes 'delta-spark' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down
1 change: 1 addition & 0 deletions images/all-spark-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ RUN mamba install --yes \
'r-rcurl' \
'r-sparklyr' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions images/base-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ RUN mamba install --yes \
jupyter server --generate-config && \
mamba clean --all -f -y && \
jupyter lab clean && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
rm -rf "/home/${NB_USER}/.cache/yarn" && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
Expand Down
1 change: 1 addition & 0 deletions images/datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ RUN mamba install --yes \
'rpy2' \
'unixodbc' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions images/docker-stacks-foundation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ RUN set -x && \
# https://github.com/conda-forge/libxml2-feedstock/issues/145
echo 'libxml2<2.14.0' >> /opt/conda/conda-meta/pinned && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ fix-permissions "${JULIA_PKGDIR}" "${CONDA_DIR}/share/jupyter"
mamba install --yes \
'jupyter-pluto-proxy' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions images/pyspark-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ RUN mamba install --yes \
'pandas=2.2.2' \
'pyarrow' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down
1 change: 1 addition & 0 deletions images/r-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ RUN mamba install --yes \
'r-tidyverse' \
'unixodbc' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
1 change: 1 addition & 0 deletions images/scipy-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ RUN mamba install --yes \
'widgetsnbextension' \
'xlrd' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down
1 change: 1 addition & 0 deletions images/tensorflow-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN mamba install --yes \
'jupyter-server-proxy' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down
1 change: 1 addition & 0 deletions images/tensorflow-notebook/cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN mamba install --yes \
'jupyter-server-proxy' && \
mamba clean --all -f -y && \
(rm -r /home/"${NB_USER}"/.cache/rosetta || true) && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

Expand Down