You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@yetus.apache.org by aw...@apache.org on 2019/03/28 23:24:49 UTC

[yetus] branch master updated: YETUS-827. Upgrade python3 to 3.7

This is an automated email from the ASF dual-hosted git repository.

aw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yetus.git


The following commit(s) were added to refs/heads/master by this push:
     new dd7ecd7  YETUS-827. Upgrade python3 to 3.7
dd7ecd7 is described below

commit dd7ecd7fe5be882ad56d9bfdd1e801003afc51f4
Author: Allen Wittenauer <aw...@apache.org>
AuthorDate: Mon Mar 25 13:34:02 2019 -0700

    YETUS-827. Upgrade python3 to 3.7
    
    Signed-off-by: Allen Wittenauer <aw...@apache.org>
---
 precommit/src/main/shell/test-patch-docker/Dockerfile | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/precommit/src/main/shell/test-patch-docker/Dockerfile b/precommit/src/main/shell/test-patch-docker/Dockerfile
index 311c32b..e8552fb 100644
--- a/precommit/src/main/shell/test-patch-docker/Dockerfile
+++ b/precommit/src/main/shell/test-patch-docker/Dockerfile
@@ -145,17 +145,17 @@ RUN apt-get -q update && apt-get -q install --no-install-recommends -y perl libp
 ######
 # Install python3 and pylint3
 ######
+RUN add-apt-repository -y ppa:deadsnakes/ppa
+# hadolint ignore=DL3008
 RUN apt-get -q update && apt-get -q install --no-install-recommends -y \
-    python3 \
-    python3-pip \
-    python3-pkg-resources \
-    python3-setuptools \
-    python3-wheel \
-    python3-dev \
-    && apt-get clean \
-    && rm -rf /var/lib/apt/lists/*
+   python3.7 \
+   python3.7-dev \
+   && apt-get clean \
+   && rm -rf /var/lib/apt/lists/*
+RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
+   && python3.7 get-pip.py
 # astroid and pylint go hand-in-hand.  Upgrade both at the same time.
-#hadolint ignore=DL3013
+# hadolint ignore=DL3013
 RUN pip3 install -v  astroid==2.2.4 pylint==2.3.1 docker-compose
 RUN mv /usr/local/bin/pylint /usr/local/bin/pylint3