Migrate robot image to python 3.8 94/112794/1
authorkrishnaa96 <krishna.moorthy6@wipro.com>
Thu, 17 Sep 2020 07:36:00 +0000 (13:06 +0530)
committerkrishnaa96 <krishna.moorthy6@wipro.com>
Thu, 17 Sep 2020 07:36:00 +0000 (13:06 +0530)
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

cmso-robot/docker/Dockerfile

index e46c140..0406ff7 100644 (file)
@@ -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 && \