Skip to content

Commit

Permalink
Install gcompat for Pulsar 2.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed May 20, 2024
1 parent 30e6ead commit fbb460a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion images/pulsar-functions-base-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN echo "VERSION_TAG=${VERSION_TAG}" && \
export JRE_PACKAGE_NAME=openjdk11; \
elif [ $VERSION_MAJOR -eq 2 ] && [ $VERSION_MINOR -eq 10 ]; then \
echo "Pulsar version is 2.10, use java 11" && \
export JRE_PACKAGE_NAME=openjdk11; \
export JRE_PACKAGE_NAME='openjdk11 gcompat'; \
elif [ $VERSION_MAJOR -eq 2 ] && [ $VERSION_MINOR -eq 11 ]; then \
echo "Pulsar version is 2.11, use java 17" && \
export JRE_PACKAGE_NAME=openjdk11; \
Expand All @@ -47,6 +47,8 @@ RUN echo "VERSION_TAG=${VERSION_TAG}" && \
fi && \
apk update && apk add --no-cache $JRE_PACKAGE_NAME bash

ENV LD_PRELOAD=/lib/libgcompat.so.0

COPY --from=pulsar --chown=$UID:$GID /pulsar/conf /pulsar/conf
COPY --from=pulsar --chown=$UID:$GID /pulsar/bin /pulsar/bin
COPY --from=pulsar --chown=$UID:$GID /pulsar/lib /pulsar/lib
Expand Down
4 changes: 3 additions & 1 deletion images/pulsar-functions-java-runner/pulsarctl.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN echo "VERSION_TAG=${VERSION_TAG}" && \
export JRE_PACKAGE_NAME=openjdk11; \
elif [ $VERSION_MAJOR -eq 2 ] && [ $VERSION_MINOR -eq 10 ]; then \
echo "Pulsar version is 2.10, use java 11" && \
export JRE_PACKAGE_NAME=openjdk11; \
export JRE_PACKAGE_NAME='openjdk11 gcompat'; \
elif [ $VERSION_MAJOR -eq 2 ] && [ $VERSION_MINOR -eq 11 ]; then \
echo "Pulsar version is 2.11, use java 17" && \
export JRE_PACKAGE_NAME=openjdk17; \
Expand All @@ -31,6 +31,8 @@ RUN echo "VERSION_TAG=${VERSION_TAG}" && \
fi && \
apk update && apk add --no-cache $JRE_PACKAGE_NAME

ENV LD_PRELOAD=/lib/libgcompat.so.0

COPY --from=pulsar --chown=$UID:$GID /pulsar/conf /pulsar/conf
COPY --from=pulsar --chown=$UID:$GID /pulsar/lib /pulsar/lib
COPY --from=pulsar --chown=$UID:$GID /pulsar/instances/java-instance.jar /pulsar/instances/java-instance.jar
Expand Down

0 comments on commit fbb460a

Please sign in to comment.