diff options
author | krishnaa96 <krishna.moorthy6@wipro.com> | 2020-09-17 13:06:00 +0530 |
---|---|---|
committer | krishnaa96 <krishna.moorthy6@wipro.com> | 2020-09-17 13:06:00 +0530 |
commit | 2e1752098e821b16c5f997296254ac1d68b8b1ee (patch) | |
tree | 8285ba8da885ca2c6176da79439d0daf64371073 /cmso-robot | |
parent | bf77d3c5502124c507d60f35bc86416a4959127b (diff) |
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 <krishna.moorthy6@wipro.com>
Change-Id: I306e63117f7b8c514a5cfe2afcf8f247f214706a
Diffstat (limited to 'cmso-robot')
-rw-r--r-- | cmso-robot/docker/Dockerfile | 14 |
1 files 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 <testname> 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 && \ |