[PATCH] D69053: [LNT] Switch docker image to Python 3

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 09:41:26 PDT 2019


thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls.
thopre added a parent revision: D69052: [LNT] Python 3 support: enable testing for Python 3.
thopre added a child revision: D69054: [LNT] Remove useless import fallback.

With Python 2 end of support being so near, this commit changes the
docker image to be in Python 3 rather than Python 2.


https://reviews.llvm.org/D69053

Files:
  docker/Dockerfile


Index: docker/Dockerfile
===================================================================
--- docker/Dockerfile
+++ docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:2.7-alpine
+FROM python:alpine
 
 RUN apk update \
   && apk add --no-cache --virtual .build-deps git g++ postgresql-dev yaml-dev \
@@ -7,7 +7,7 @@
 
 COPY . /var/src/lnt/
 
-RUN python /var/src/lnt/setup.py install --server \
+RUN python3 /var/src/lnt/setup.py install --server \
   && rm -rf /var/src \
   && apk --purge del .build-deps \
   && mkdir /var/log/lnt


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69053.225248.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191016/87aba535/attachment.bin>


More information about the llvm-commits mailing list