You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by zi...@apache.org on 2024/10/29 03:55:43 UTC
(pulsar) 02/08: [improve][build] Remove build-essential and python3-dev
This is an automated email from the ASF dual-hosted git repository.
zixuan pushed a commit to branch branch-as-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit d19818d2adecbee7051267530b089bed645b0a42
Author: Zixuan Liu <no...@gmail.com>
AuthorDate: Mon Sep 23 18:21:18 2024 +0800
[improve][build] Remove build-essential and python3-dev
Signed-off-by: Zixuan Liu <no...@gmail.com>
---
docker/pulsar/Dockerfile | 3 ++-
docker/pulsar/scripts/install-pulsar-client.sh | 7 -------
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile
index 03abded477e..a52ecd56d3c 100644
--- a/docker/pulsar/Dockerfile
+++ b/docker/pulsar/Dockerfile
@@ -87,7 +87,8 @@ RUN sed -i -e "s|http://archive\.ubuntu\.com/ubuntu/|${UBUNTU_MIRROR:-mirror://m
&& apt-get autoclean \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
- && pip3 install pyyaml==6.0.1
+ && pip3 install --no-cache-dir --upgrade pip \
+ && pip3 install --no-cache-dir pyyaml==6.0.1
# Copy Eclipse Temurin Package
ENV JAVA_HOME=/opt/java/openjdk
diff --git a/docker/pulsar/scripts/install-pulsar-client.sh b/docker/pulsar/scripts/install-pulsar-client.sh
index 0951b2aec1b..b9f7c3d874b 100755
--- a/docker/pulsar/scripts/install-pulsar-client.sh
+++ b/docker/pulsar/scripts/install-pulsar-client.sh
@@ -20,11 +20,4 @@
set -x
-# TODO: remove these lines once grpcio doesn't need to compile from source on ARM64 platform
-ARCH=$(uname -m | sed -r 's/aarch64/arm64/g' | awk '!/arm64/{$0="amd64"}1')
-if [ "${ARCH}" == "arm64" ]; then
- apt update
- apt -y install build-essential python3-dev
-fi
-
pip3 install pulsar-client[all]==${PULSAR_CLIENT_PYTHON_VERSION}