From da40d815a6d2170b51137aeb4d6c41fd01186277 Mon Sep 17 00:00:00 2001 From: Guillaume Moutier Date: Thu, 22 Feb 2024 13:55:07 -0500 Subject: [PATCH] fix permissions on /milvus for OpenShift Signed-off-by: Guillaume Moutier --- build/docker/milvus/amazonlinux2023/Dockerfile | 3 +++ build/docker/milvus/gpu/ubuntu20.04/Dockerfile | 3 +++ build/docker/milvus/ubuntu20.04/Dockerfile | 3 +++ 3 files changed, 9 insertions(+) diff --git a/build/docker/milvus/amazonlinux2023/Dockerfile b/build/docker/milvus/amazonlinux2023/Dockerfile index 580324bc199cb..b8176af81f04c 100644 --- a/build/docker/milvus/amazonlinux2023/Dockerfile +++ b/build/docker/milvus/amazonlinux2023/Dockerfile @@ -22,6 +22,9 @@ COPY ./configs/ /milvus/configs/ COPY ./lib/ /milvus/lib/ +RUN chgrp -R root /milvus && \ + chmod -R g+rwx /milvus + ENV PATH=/milvus/bin:$PATH ENV LD_LIBRARY_PATH=/milvus/lib:$LD_LIBRARY_PATH:/usr/lib ENV LD_PRELOAD=/milvus/lib/libjemalloc.so diff --git a/build/docker/milvus/gpu/ubuntu20.04/Dockerfile b/build/docker/milvus/gpu/ubuntu20.04/Dockerfile index a0bf2b113a88b..47f62d48c20b4 100644 --- a/build/docker/milvus/gpu/ubuntu20.04/Dockerfile +++ b/build/docker/milvus/gpu/ubuntu20.04/Dockerfile @@ -18,6 +18,9 @@ COPY ./configs/ /milvus/configs/ COPY ./lib/ /milvus/lib/ +RUN chgrp -R root /milvus && \ + chmod -R g+rwx /milvus + ENV PATH=/milvus/bin:$PATH ENV LD_LIBRARY_PATH=/milvus/lib:$LD_LIBRARY_PATH:/usr/lib ENV LD_PRELOAD=/milvus/lib/libjemalloc.so diff --git a/build/docker/milvus/ubuntu20.04/Dockerfile b/build/docker/milvus/ubuntu20.04/Dockerfile index 6ec233a9ca79a..45ef8ed9bb79e 100644 --- a/build/docker/milvus/ubuntu20.04/Dockerfile +++ b/build/docker/milvus/ubuntu20.04/Dockerfile @@ -24,6 +24,9 @@ COPY ./configs/ /milvus/configs/ COPY ./lib/ /milvus/lib/ +RUN chgrp -R root /milvus && \ + chmod -R g+rwx /milvus + ENV PATH=/milvus/bin:$PATH ENV LD_LIBRARY_PATH=/milvus/lib:$LD_LIBRARY_PATH:/usr/lib ENV LD_PRELOAD=/milvus/lib/libjemalloc.so