File tree Expand file tree Collapse file tree 9 files changed +76
-0
lines changed Expand file tree Collapse file tree 9 files changed +76
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ RUN apt-get update --yes && \
25
25
gcc && \
26
26
apt-get clean && rm -rf /var/lib/apt/lists/*
27
27
28
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
29
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
30
+ #
31
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
32
+ RUN rm -rf "/home/${NB_USER}/.cache/"
33
+
28
34
USER ${NB_UID}
29
35
30
36
# R packages including IRKernel which gets installed globally.
Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ RUN apt-get update --yes && \
29
29
run-one && \
30
30
apt-get clean && rm -rf /var/lib/apt/lists/*
31
31
32
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
33
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
34
+ #
35
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
36
+ RUN rm -rf "/home/${NB_USER}/.cache/"
37
+
32
38
USER ${NB_UID}
33
39
34
40
# Install JupyterHub, JupyterLab, NBClassic and Jupyter Notebook
@@ -74,6 +80,12 @@ RUN fix-permissions /etc/jupyter/
74
80
HEALTHCHECK --interval=3s --timeout=1s --start-period=3s --retries=3 \
75
81
CMD /etc/jupyter/docker_healthcheck.py || exit 1
76
82
83
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
84
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
85
+ #
86
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
87
+ RUN rm -rf "/home/${NB_USER}/.cache/"
88
+
77
89
# Switch back to jovyan to avoid accidental container runs as root
78
90
USER ${NB_UID}
79
91
Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ ENV JULIA_DEPOT_PATH=/opt/julia \
29
29
# Setup Julia
30
30
RUN /opt/setup-scripts/setup_julia.py
31
31
32
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
33
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
34
+ #
35
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
36
+ # hadolint ignore=DL3059
37
+ RUN rm -rf "/home/${NB_USER}/.cache/"
38
+
32
39
USER ${NB_UID}
33
40
34
41
# Setup IJulia kernel & other packages
Original file line number Diff line number Diff line change @@ -86,6 +86,12 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
86
86
fix-permissions "${CONDA_DIR}" && \
87
87
fix-permissions "/home/${NB_USER}"
88
88
89
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
90
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
91
+ #
92
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
93
+ RUN rm -rf "/home/${NB_USER}/.cache/"
94
+
89
95
USER ${NB_UID}
90
96
91
97
# Pin the Python version here, or set it to "default"
@@ -152,6 +158,12 @@ RUN mkdir /usr/local/bin/start-notebook.d && \
152
158
153
159
COPY 10activate-conda-env.sh /usr/local/bin/before-notebook.d/
154
160
161
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
162
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
163
+ #
164
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
165
+ RUN rm -rf "/home/${NB_USER}/.cache/"
166
+
155
167
# Switch back to jovyan to avoid accidental container runs as root
156
168
USER ${NB_UID}
157
169
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ ENV JULIA_DEPOT_PATH=/opt/julia \
21
21
# Setup Julia
22
22
RUN /opt/setup-scripts/setup_julia.py
23
23
24
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
25
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
26
+ #
27
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
28
+ # hadolint ignore=DL3059
29
+ RUN rm -rf "/home/${NB_USER}/.cache/"
30
+
24
31
USER ${NB_UID}
25
32
26
33
# Setup IJulia kernel & other packages
Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ RUN apt-get update --yes && \
40
40
# Create alternative for nano -> nano-tiny
41
41
RUN update-alternatives --install /usr/bin/nano nano /bin/nano-tiny 10
42
42
43
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
44
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
45
+ #
46
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
47
+ # hadolint ignore=DL3059
48
+ RUN rm -rf "/home/${NB_USER}/.cache/"
49
+
43
50
# Switch back to jovyan to avoid accidental container runs as root
44
51
USER ${NB_UID}
45
52
Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ RUN /opt/setup-scripts/setup_spark.py \
51
51
COPY ipython_kernel_config.py "/etc/ipython/"
52
52
RUN fix-permissions "/etc/ipython/"
53
53
54
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
55
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
56
+ #
57
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
58
+ # hadolint ignore=DL3059
59
+ RUN rm -rf "/home/${NB_USER}/.cache/"
60
+
54
61
USER ${NB_UID}
55
62
56
63
# Install pyarrow
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ RUN apt-get update --yes && \
24
24
gcc && \
25
25
apt-get clean && rm -rf /var/lib/apt/lists/*
26
26
27
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
28
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
29
+ #
30
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
31
+ RUN rm -rf "/home/${NB_USER}/.cache/"
32
+
27
33
USER ${NB_UID}
28
34
29
35
# R packages including IRKernel which gets installed globally.
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ RUN apt-get update --yes && \
24
24
ffmpeg && \
25
25
apt-get clean && rm -rf /var/lib/apt/lists/*
26
26
27
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
28
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
29
+ #
30
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
31
+ RUN rm -rf "/home/${NB_USER}/.cache/"
32
+
27
33
USER ${NB_UID}
28
34
29
35
# Install Python 3 packages
@@ -74,6 +80,12 @@ RUN git clone https://github.com/PAIR-code/facets && \
74
80
RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \
75
81
fix-permissions "/home/${NB_USER}"
76
82
83
+ # macOS Rosetta virtualization creates junk directory which gets owned by root further up.
84
+ # It'll get re-created, but as USER runner after the next directive so hopefully should not cause permission issues.
85
+ #
86
+ # More info: https://github.com/jupyter/docker-stacks/issues/2296
87
+ RUN rm -rf "/home/${NB_USER}/.cache/"
88
+
77
89
USER ${NB_UID}
78
90
79
91
WORKDIR "${HOME}"
You can’t perform that action at this time.
0 commit comments