From: Fatih Degirmenci Date: Tue, 21 Jan 2020 16:10:34 +0000 (+0100) Subject: Ensure we can install python3.6 in docker slave X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=4b6b4d6b50d65a2a49f4ee1f8422f424ab661ff1;hp=328166a4311aba6d0d66a7d71e14edb372fdeb90;p=infra%2Ftools.git Ensure we can install python3.6 in docker slave Change-Id: Iecac3cb90c703e038dd0e9fed5ad642476069067 --- diff --git a/infra/jenkins/slave-setup/docker-slave/Dockerfile b/infra/jenkins/slave-setup/docker-slave/Dockerfile index 32f72c6..458039d 100644 --- a/infra/jenkins/slave-setup/docker-slave/Dockerfile +++ b/infra/jenkins/slave-setup/docker-slave/Dockerfile @@ -38,7 +38,12 @@ FROM jenkins/jnlp-slave USER root # we need few basic packages in order to use base image as Jenkins slave -RUN apt update && apt install -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -q=3 -y git vim sudo +RUN apt update +RUN apt install -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -q=3 -y git vim sudo software-properties-common +# add ubuntu repos for python3.6-minimal and the key +RUN add-apt-repository 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic main' +RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 3B4FE6ACC0B21F32 +RUN apt update # we install system packages as part of Jenkins verify jobs so # jenkins user needs to be able to run sudo RUN usermod -aG sudo jenkins