Skip to content

Commit 0b07edc

Browse files
authored
[improve] Upgrade pulsar-client-python to 3.7.0 in Docker image (apache#24302)
1 parent 174245d commit 0b07edc

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

docker/pulsar/Dockerfile

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -105,28 +105,11 @@ RUN apk add --no-cache \
105105
RUN apk upgrade --no-cache
106106

107107
# Python dependencies
108-
109-
# The [email protected] is installed by apk, and [email protected] requires grpcio>=1.60.0, which causes the grocio to be reinstalled by pip.
110-
# If pip cannot find the grpcio wheel that the doesn't match the OS, the grpcio will be compiled locally.
111-
# Once https://github.com/apache/pulsar-client-python/pull/211 is released, keep only the pulsar-client[all] and kazoo dependencies, and remove comments.
112108
ARG PULSAR_CLIENT_PYTHON_VERSION
113-
RUN echo -e "\
114-
#pulsar-client[all]==${PULSAR_CLIENT_PYTHON_VERSION}\n\
115-
pulsar-client==${PULSAR_CLIENT_PYTHON_VERSION}\n\
116-
# Zookeeper\n\
117-
kazoo\n\
118-
# functions\n\
119-
protobuf>=3.6.1,<=3.20.3\n\
120-
grpcio>=1.59.3\n\
121-
apache-bookkeeper-client>=4.16.1\n\
122-
prometheus_client\n\
123-
ratelimit\n\
124-
# avro\n\
125-
fastavro>=1.9.2\n\
126-
" > /requirements.txt
127-
128-
RUN pip3 install --break-system-packages --no-cache-dir --only-binary grpcio -r /requirements.txt
129-
RUN rm /requirements.txt
109+
RUN pip3 install --break-system-packages --no-cache-dir \
110+
--only-binary grpcio \
111+
pulsar-client[all]==${PULSAR_CLIENT_PYTHON_VERSION} \
112+
kazoo
130113

131114
COPY --from=jvm /opt/jvm /opt/jvm
132115
ENV JAVA_HOME=/opt/jvm

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ flexible messaging model and an intuitive client API.</description>
8282
<pulsar.broker.compiler.release>${maven.compiler.target}</pulsar.broker.compiler.release>
8383
<pulsar.client.compiler.release>8</pulsar.client.compiler.release>
8484

85-
<pulsar.client.python.version>3.5.0</pulsar.client.python.version>
85+
<pulsar.client.python.version>3.7.0</pulsar.client.python.version>
8686

8787
<IMAGE_JDK_MAJOR_VERSION>21</IMAGE_JDK_MAJOR_VERSION>
8888

0 commit comments

Comments
 (0)