Skip to content

Commit b68a0aa

Browse files
Issue opendatahub-io#2081: use install -D for robust file copying (opendatahub-io#2112)
Replace cp command with install -D -m 0644 in datascience Dockerfile for more reliable file copying that creates missing directories. - Fixes: opendatahub-io#2081 - Tests: pytest tests/containers/workbenches/jupyterlab/jupyterlab_datascience_test.py - Validation: test-jupyter-datascience-ubi9-python-3.12 Makefile target - Coverage: Base image tests validate container build and runtime Signed-off-by: Pramod Toraskar <[email protected]>
1 parent 7cc5a79 commit b68a0aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ RUN echo "Installing softwares and packages" && \
125125
# Replace Notebook's launcher, "(ipykernel)" with Python's version 3.x.y \
126126
sed -i -e "s/Python.*/$(python --version | cut -d '.' -f-2)\",/" /opt/app-root/share/jupyter/kernels/python3/kernel.json && \
127127
# copy jupyter configuration
128-
cp /opt/app-root/bin/utils/jupyter_server_config.py /opt/app-root/etc/jupyter && \
128+
install -D -m 0644 /opt/app-root/bin/utils/jupyter_server_config.py \
129+
/opt/app-root/etc/jupyter/jupyter_server_config.py && \
129130
# Disable announcement plugin of jupyterlab \
130131
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
131132
# Apply JupyterLab addons \

0 commit comments

Comments
 (0)