Skip to content

Commit 7eb3dcc

Browse files
authored
Issue opendatahub-io#2580: fix(trusty): set same permissions for group as for owner for OpenShift compatibility (opendatahub-io#2581)
``` =========================== short test summary info ============================ [Checking permissions of the: /opt/app-root/share] SUBFAIL tests/containers/base_image_test.py::TestBaseImage::test_file_permissions[ghcr.io/opendatahub-io/notebooks/workbench-images:jupyter-trustyai-ubi9-python-3.12-_40a15f26ca1f3af8135ddbadee43708501cd19b1] - AssertionError: assert '755:0:1001' == '775:0:1001' - 775:0:1001 ? ^ + 755:0:1001 ? ^ FAILED ```
1 parent 4c2ac9b commit 7eb3dcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
200200
# Build debugpy from source instead
201201
UV_LINK_MODE=copy uv pip install --no-cache git+https://github.com/microsoft/debugpy.git@v$(grep -A1 '\"debugpy\"' ./pylock.toml | grep -Eo '\b[0-9\.]+\b') && \
202202
# change ownership to default user (all packages were installed as root and has root:root ownership \
203-
chown -R 1001:0 /opt/app-root/
203+
chown -R 1001:0 /opt/app-root/ && \
204+
chmod -R g=u /opt/app-root
204205

205206
USER 1001
206207

0 commit comments

Comments
 (0)