From 014018194bb58b0d2a2e5d37d239261b6ae2783c Mon Sep 17 00:00:00 2001 From: sapirgila Date: Wed, 29 May 2024 14:56:54 +0300 Subject: [PATCH 1/2] update Dockerfile for smart-cache-enterprise --- smart-cache-enterprise/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/smart-cache-enterprise/Dockerfile b/smart-cache-enterprise/Dockerfile index ea5d2121..84db82db 100644 --- a/smart-cache-enterprise/Dockerfile +++ b/smart-cache-enterprise/Dockerfile @@ -30,8 +30,10 @@ RUN wget --progress=bar:force -O /tmp/gigaspaces.zip ${GS_URL} &&\ echo "#!/bin/bash" > /bin/kill && echo "kill \$@" >> /bin/kill && chmod +x /bin/kill RUN groupadd --gid 2000 --system gs_group &&\ adduser --shell /bin/nologin --uid 2001 --gid 2000 gs_user &&\ - chown -R gs_user:0 ${GS_HOME} -ADD entrypoint.sh /opt/entrypoint.sh + chown -R gs_user:0 ${GS_HOME} &&\ + chmod -R 0775 /opt/gigaspaces + +COPY --chmod=075 entrypoint.sh /opt/entrypoint.sh # Configure and expose ports ENV LD_LIBRARY_PATH "/lib:/lib64" From efd8489b8f797ebdf8c6f51b580d01015fdd9ad5 Mon Sep 17 00:00:00 2001 From: sapirgila Date: Wed, 29 May 2024 15:34:36 +0300 Subject: [PATCH 2/2] update dockerfile --- smart-cache-enterprise/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/smart-cache-enterprise/Dockerfile b/smart-cache-enterprise/Dockerfile index 84db82db..427f9095 100644 --- a/smart-cache-enterprise/Dockerfile +++ b/smart-cache-enterprise/Dockerfile @@ -28,12 +28,13 @@ RUN wget --progress=bar:force -O /tmp/gigaspaces.zip ${GS_URL} &&\ rm -f /tmp/gigaspaces.zip &&\ wget ${KUBERNETES_CLINET_URL} -O ${GS_HOME}/tools/kubernetes/lib/k8s-java-client.jar &&\ echo "#!/bin/bash" > /bin/kill && echo "kill \$@" >> /bin/kill && chmod +x /bin/kill + +COPY --chmod=775 entrypoint.sh /opt/entrypoint.sh RUN groupadd --gid 2000 --system gs_group &&\ adduser --shell /bin/nologin --uid 2001 --gid 2000 gs_user &&\ chown -R gs_user:0 ${GS_HOME} &&\ - chmod -R 0775 /opt/gigaspaces + chmod -R 775 /opt/gigaspaces -COPY --chmod=075 entrypoint.sh /opt/entrypoint.sh # Configure and expose ports ENV LD_LIBRARY_PATH "/lib:/lib64"