Skip to content

Commit

Permalink
Fix python integration in hazelcast-enterprise image [5.5.z] (#785)
Browse files Browse the repository at this point in the history
Backport of #784

- Install flock in EE image as it's required for python integration
- Change home directory of `hazelcast` user to writable
`/home/hazelcast` to make `jet_to_python_init.sh` working

Fixes: https://hazelcast.atlassian.net/browse/DI-179
  • Loading branch information
ldziedziul authored Jul 23, 2024
1 parent 2b0891b commit c2f1099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hazelcast-enterprise/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ COPY *.jar hazelcast-*.zip maven.functions.sh ${HZ_HOME}/
RUN echo "Installing new packages" \
&& microdnf -y update --nodocs \
&& microdnf -y --nodocs --disablerepo=* --enablerepo=ubi-9-appstream-rpms --enablerepo=ubi-9-baseos-rpms \
--disableplugin=subscription-manager install shadow-utils java-${JDK_VERSION}-openjdk-headless zip tar tzdata-java \
--disableplugin=subscription-manager install shadow-utils java-${JDK_VERSION}-openjdk-headless zip tar tzdata-java util-linux \
&& if [[ ! -f ${HZ_HOME}/hazelcast-enterprise-distribution.zip ]]; then \
if [ -z ${HAZELCAST_ZIP_URL} ]; then \
source ${HZ_HOME}/maven.functions.sh; \
Expand Down Expand Up @@ -71,7 +71,7 @@ COPY log4j2.properties log4j2-json.properties jmx_agent_config.yaml ${HZ_HOME}/c

RUN echo "Adding non-root user" \
&& groupadd --system hazelcast \
&& useradd -l --system -g hazelcast -d ${HZ_HOME} ${USER_NAME}
&& useradd --no-log-init --system --gid hazelcast --create-home ${USER_NAME}

WORKDIR ${HZ_HOME}

Expand Down

0 comments on commit c2f1099

Please sign in to comment.