]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docker: add Python3.6 to image
authorDaniel Axtens <dja@axtens.net>
Thu, 25 Jan 2018 02:43:16 +0000 (13:43 +1100)
committerStephen Finucane <stephen@that.guru>
Fri, 26 Jan 2018 21:42:58 +0000 (21:42 +0000)
This is needed to support py3.6-django111 in tox - otherwise tox
fails.

Python3.6 is not in Xenial, so this - irritatingly - requires pulling
in either a PPA, or the package from Artful. PPAs are icky, so pull it
in from Artful.

We can either add an Artful repo (like we do for Trusty to pull in
python3.4), or move the image to Artful and add in the Xenial repo
to get python3.5. It's more efficient to move the entire image to
Artful and pull in 3.5 from Xenial - otherwise most packages get
downloaded from Artful anyway. It does mean we're going to need to
move again to Bionic in a few months, but we'll just have to deal.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephen@that.guru>
tools/docker/Dockerfile
tools/docker/xenial.list [new file with mode: 0644]

index 946c646188e52ac53779556614c676637e92d59d..eb6d35d8252806a1b82f1ae081bcae992c98c898 100644 (file)
@@ -1,4 +1,4 @@
-FROM ubuntu
+FROM ubuntu:17.10
 
 ARG UID=1000
 
@@ -12,14 +12,15 @@ ENV DEBIAN_FRONTEND noninteractive
 ENV PYTHONUNBUFFERED 1
 
 # System
-# python3.4-minimal libpython3.4-stdlib libpython3.4-minimal \
-# findutils is for python3.4... :/
+# trusty and findutils is for python3.4
+# xenial is for python3.5
 COPY tools/docker/trusty.list /etc/apt/sources.list.d/trusty.list
+COPY tools/docker/xenial.list /etc/apt/sources.list.d/xenial.list
 RUN apt-get update -qq && \
     apt-get install -y --no-install-recommends --allow-downgrades \
     python-dev python-pip python-setuptools python-wheel \
     python3.5-dev python3-pip python3-setuptools python3-wheel \
-    python3.4-dev findutils=4.4.2-7 \
+    python3.4-dev findutils=4.4.2-7 python3.6-dev \
     libmysqlclient-dev mysql-client curl unzip xvfb chromium-chromedriver \
     chromium-browser build-essential git postgresql-client && \
     ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/
diff --git a/tools/docker/xenial.list b/tools/docker/xenial.list
new file mode 100644 (file)
index 0000000..a70ff56
--- /dev/null
@@ -0,0 +1,3 @@
+deb http://archive.ubuntu.com/ubuntu/ xenial main
+deb http://archive.ubuntu.com/ubuntu/ xenial-updates main
+deb http://security.ubuntu.com/ubuntu xenial-security main