From 929cf357736603f40ac70b4f91d5210b88cc5960 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Wed, 11 Feb 2026 09:25:17 +0000 Subject: [PATCH] Containerfile: Fix OKP content removal The patch fixes the following error that emerged from CI by escalating the priviledges of the container step which the OKP content is cleaned up: [3/4] STEP 24/24: RUN rm -rf ./okp-content rm: cannot remove './okp-content/README': Permission denied Error: building at STEP "RUN rm -rf ./okp-content": while running runtime: exit status 1 Signed-off-by: Lucas Alvares Gomes --- Containerfile | 1 + temporary_cpu.containerfile | 1 + temporary_gpu.containerfile | 1 + 3 files changed, 3 insertions(+) diff --git a/Containerfile b/Containerfile index 149ee48..4ed6b36 100644 --- a/Containerfile +++ b/Containerfile @@ -86,6 +86,7 @@ ENV LD_LIBRARY_PATH="" ENV OKP_CONTENT=$OKP_CONTENT ENV BUILD_OCP_DOCS=$BUILD_OCP_DOCS +USER 0 WORKDIR /rag-content RUN if [ "$FLAVOR" == "gpu" ]; then \ diff --git a/temporary_cpu.containerfile b/temporary_cpu.containerfile index a5051ca..9126204 100644 --- a/temporary_cpu.containerfile +++ b/temporary_cpu.containerfile @@ -109,6 +109,7 @@ ENV LD_LIBRARY_PATH="" ENV OKP_CONTENT=$OKP_CONTENT ENV BUILD_OCP_DOCS=$BUILD_OCP_DOCS +USER 0 WORKDIR /rag-content RUN if [ "$BUILD_UPSTREAM_DOCS" = "true" ]; then \ diff --git a/temporary_gpu.containerfile b/temporary_gpu.containerfile index 85ff141..cda46c8 100644 --- a/temporary_gpu.containerfile +++ b/temporary_gpu.containerfile @@ -137,6 +137,7 @@ ENV LD_LIBRARY_PATH="" ENV OKP_CONTENT=$OKP_CONTENT ENV BUILD_OCP_DOCS=$BUILD_OCP_DOCS +USER 0 WORKDIR /rag-content RUN python -c "import torch, sys; available=torch.cuda.is_available(); print(f'CUDA is available: {available}'); sys.exit(0 if available else 1)"; \