From 2e1752098e821b16c5f997296254ac1d68b8b1ee Mon Sep 17 00:00:00 2001 From: krishnaa96 Date: Thu, 17 Sep 2020 13:06:00 +0530 Subject: Migrate robot image to python 3.8 Fix is similar to the OSDF docker base image has been updated to 20.04 Issue-ID: OPTFRA-839 Signed-off-by: krishnaa96 Change-Id: I306e63117f7b8c514a5cfe2afcf8f247f214706a --- cmso-robot/docker/Dockerfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cmso-robot/docker/Dockerfile b/cmso-robot/docker/Dockerfile index e46c140..0406ff7 100644 --- a/cmso-robot/docker/Dockerfile +++ b/cmso-robot/docker/Dockerfile @@ -1,10 +1,11 @@ -FROM ubuntu:16.04 +FROM ubuntu:20.04 MAINTAINER "CMSO" LABEL name="Docker image for the CMSO Robot Testing Framework" LABEL usage="docker run -e optf-cmso-robot" +ARG DEBIAN_FRONTEND=noninteractive ARG http_proxy_arg ARG https_proxy_arg ENV HTTP_PROXY=$http_proxy_arg @@ -14,12 +15,9 @@ ENV https_proxy=$HTTPS_PROXY RUN test -n "$" && echo "Acquire::Proxy \"http://$http_proxy\";" > /etc/apt/apt.conf.d/02proxy || true && \ apt-get update && \ -apt-get install -y software-properties-common vim && \ -add-apt-repository ppa:deadsnakes/ppa && \ -apt-get update && \ -apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv && \ -python3.6 -m pip install pip --upgrade && \ -python3.6 -m pip install wheel && \ +apt-get install -y software-properties-common vim build-essential python3 python3-dev python3-pip python3-venv && \ +python3.8 -m pip install pip --upgrade && \ +python3.8 -m pip install wheel && \ apt-get install \ --no-install-recommends \ --assume-yes \ @@ -37,7 +35,7 @@ COPY /onap-cmso/mocking /opt/cmso-robot/mocking COPY /onap-cmso/ete.sh /opt/cmso-robot -RUN ln -s /usr/bin/python3.6 /usr/bin/python && \ +RUN ln -s /usr/bin/python3.8 /usr/bin/python && \ python --version && \ pip --version && \ pip install robotframework==3.1.1 && \ -- cgit 1.2.3-korg