[2/6] travis: set python3 as default for fedora containers

Submitted by Andrey Vagin on May 30, 2018, 6:39 p.m.

Details

Message ID 20180530183939.32310-3-avagin@virtuozzo.com
State New
Series "More changes to be compatible with python 3"
Headers show

Commit Message

Andrey Vagin May 30, 2018, 6:39 p.m.
We need a few jobs to check a compatibility with python3

Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
---
 scripts/build/Dockerfile.fedora.tmpl | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/scripts/build/Dockerfile.fedora.tmpl b/scripts/build/Dockerfile.fedora.tmpl
index 96a41f191..c2be7bfce 100644
--- a/scripts/build/Dockerfile.fedora.tmpl
+++ b/scripts/build/Dockerfile.fedora.tmpl
@@ -23,6 +23,7 @@  RUN dnf install -y \
 	python-ipaddress \
 	# Starting with Fedora 28 this is python2-pyyaml
 	python-yaml \
+	python3-pip \
 	python2-future \
 	tar \
 	which
@@ -33,6 +34,9 @@  RUN dnf install -y \
 # > sh: /usr/bin/sort: /usr/bin/coreutils: bad interpreter: No such file or directory
 RUN dnf install -y --allowerasing coreutils
 
+RUN ln -sf python3 /usr/bin/python
+RUN pip3 install PyYAML future ipaddress protobuf junit-xml
+
 COPY . /criu
 WORKDIR /criu