diff --git a/images/pulsar-functions-base-runner/Dockerfile b/images/pulsar-functions-base-runner/Dockerfile index 155f4b47..03e1a077 100644 --- a/images/pulsar-functions-base-runner/Dockerfile +++ b/images/pulsar-functions-base-runner/Dockerfile @@ -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; \ @@ -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 diff --git a/images/pulsar-functions-java-runner/pulsarctl.Dockerfile b/images/pulsar-functions-java-runner/pulsarctl.Dockerfile index 28969486..ec6b9ab2 100644 --- a/images/pulsar-functions-java-runner/pulsarctl.Dockerfile +++ b/images/pulsar-functions-java-runner/pulsarctl.Dockerfile @@ -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; \ @@ -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