You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2019/05/28 08:28:41 UTC
[pulsar] branch master updated: Fix install pip (#4387)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new e359fa4 Fix install pip (#4387)
e359fa4 is described below
commit e359fa490eaa6cd18f1343e78a626a042e72a3d8
Author: tuteng <eg...@gmail.com>
AuthorDate: Tue May 28 16:28:34 2019 +0800
Fix install pip (#4387)
### Motivation
There is a problem with the current installation of pip when running the integration tests.
Therefore, install pip using the officially recommended method.
### Modifications
Modify the pip installation method, refer to https://pip.pypa.io/en/stable/installing/
---
docker/pulsar/Dockerfile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile
index 3a902d0..fd7569d 100644
--- a/docker/pulsar/Dockerfile
+++ b/docker/pulsar/Dockerfile
@@ -46,12 +46,14 @@ RUN apt-get update \
&& apt-get install -y netcat dnsutils \
python2.7 python-setuptools \
python3 python3-setuptools \
+ curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
-RUN easy_install pip
+RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
+RUN python2.7 get-pip.py
RUN pip install kazoo pyyaml
-RUN easy_install3 pip
+RUN python3 get-pip.py
ADD target/python-client/ /pulsar/pulsar-client
RUN /pulsar/bin/install-pulsar-client-27.sh