Skip to content

Commit

Permalink
Add pulsarctl to runner images
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed May 4, 2023
1 parent bc3beff commit c9e2f65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions images/pulsar-functions-base-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ RUN mkdir -p /pulsar/bin/ \

ARG PULSAR_IMAGE_TAG
ENV VERSION_TAG=${PULSAR_IMAGE_TAG}

ADD https://github.com/streamnative/pulsarctl/releases/download/v$VERSION_TAG/pulsarctl-amd64-linux.tar.gz /pulsar/bin/

RUN echo "VERSION_TAG=${VERSION_TAG}" && \
VERSION_MAJOR=$(echo $VERSION_TAG | cut -d. -f1) && \
VERSION_MINOR=$(echo $VERSION_TAG | cut -d. -f2) && \
Expand All @@ -45,6 +48,10 @@ RUN echo "VERSION_TAG=${VERSION_TAG}" && \
echo "Pulsar version is not in the list, use java 17 instead" && \
export JRE_PACKAGE_NAME=openjdk-17-jre-headless; \
fi && \
tar -xzf /pulsar/bin/pulsarctl-amd64-linux.tar.gz -C /pulsar/bin/ && \
rm -rf /pulsar/bin/pulsarctl-amd64-linux.tar.gz && \
chmod +x /pulsar/bin/pulsarctl-amd64-linux/pulsarctl && \
ln -s /pulsar/bin/pulsarctl-amd64-linux/pulsarctl /usr/bin/pulsarctl && \
apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get -y install $JRE_PACKAGE_NAME \
Expand Down

0 comments on commit c9e2f65

Please sign in to comment.