Skip to content

Commit 4febfd2

Browse files
committed
split-logic
1 parent fe0cae6 commit 4febfd2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

hazelcast-enterprise/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ RUN mkdir -p ${HZ_HOME} \
4242
&& apk del unzip \
4343
&& rm -rf /tmp/* \
4444
&& echo "Setting Pardot ID to 'docker'" \
45-
&& echo 'hazelcastDownloadId=docker' > "${HZ_HOME}/lib/hazelcast-download.properties"
45+
&& echo 'hazelcastDownloadId=docker' > "${HZ_HOME}/lib/hazelcast-download.properties" \
46+
&& echo "Granting read permission to ${HZ_HOME}" \
47+
&& chmod -R +r ${HZ_HOME} \
48+
&& echo "Grant execute permission to scripts in order to address the issue of permissions not being accurately propagated on Windows OS" \
49+
&& chmod +x ${HZ_HOME}/bin/*
4650

4751
COPY log4j2.properties log4j2-json.properties jmx_agent_config.yaml ${HZ_HOME}/config/
4852

@@ -92,12 +96,8 @@ RUN echo "Upgrading packages" \
9296
tar \
9397
tzdata-java \
9498
util-linux \
95-
&& echo "Granting read permission to ${HZ_HOME}" \
96-
&& chmod -R +r ${HZ_HOME} \
9799
&& echo "Removing unnecessary packages and redundant files/folders" \
98-
&& microdnf -y clean all \
99-
&& echo "Grant execute permission to scripts in order to address the issue of permissions not being accurately propagated on Windows OS" \
100-
&& chmod +x ${HZ_HOME}/bin/*
100+
&& microdnf -y clean all
101101

102102
WORKDIR ${HZ_HOME}
103103

hazelcast-oss/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ RUN mkdir -p ${HZ_HOME} \
4242
&& apk del unzip \
4343
&& rm -rf /tmp/* \
4444
&& echo "Setting Pardot ID to 'docker'" \
45-
&& echo 'hazelcastDownloadId=docker' > "${HZ_HOME}/lib/hazelcast-download.properties"
45+
&& echo 'hazelcastDownloadId=docker' > "${HZ_HOME}/lib/hazelcast-download.properties" \
46+
&& echo "Granting read permission to ${HZ_HOME}" \
47+
&& chmod -R +r ${HZ_HOME} \
48+
&& echo "Grant execute permission to scripts in order to address the issue of permissions not being accurately propagated on Windows OS" \
49+
&& chmod +x ${HZ_HOME}/bin/*
4650

4751
COPY log4j2.properties log4j2-json.properties jmx_agent_config.yaml ${HZ_HOME}/config/
4852

@@ -79,12 +83,8 @@ RUN echo "Upgrading packages" \
7983
bash \
8084
curl \
8185
openjdk${JDK_VERSION}-jre-headless \
82-
&& echo "Granting read permission to ${HZ_HOME}" \
83-
&& chmod -R +r ${HZ_HOME} \
8486
&& echo "Removing unnecessary packages and redundant files/folders" \
85-
&& rm -rf /var/cache/apk/* \
86-
&& echo "Grant execute permission to scripts in order to address the issue of permissions not being accurately propagated on Windows OS" \
87-
&& chmod +x ${HZ_HOME}/bin/*
87+
&& rm -rf /var/cache/apk/*
8888

8989
WORKDIR ${HZ_HOME}
9090

0 commit comments

Comments
 (0)