Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install gcompat for Pulsar 2.10.x #756

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading