diff options
author | Jerry Flood <jflood@att.com> | 2019-03-20 16:26:09 -0400 |
---|---|---|
committer | Jerry Flood <jflood@att.com> | 2019-03-21 14:46:14 -0400 |
commit | c94045026c7bb0ddf493f4dafccc8a60465f9928 (patch) | |
tree | b5bf3eabbdefaa5a8712c656e253f104fad2be1c /cmso-robot/docker/Dockerfile | |
parent | 263468823fb8444ed510e973b55d7249fd91d0c1 (diff) |
Update robot docker to python3
Fix style stuff
Issue-ID: OPTFRA-462
Change-Id: Idc039fddd1528bf083d5cf9158f6636d2dc3887a
Signed-off-by: Jerry Flood <jflood@att.com>
Diffstat (limited to 'cmso-robot/docker/Dockerfile')
-rw-r--r-- | cmso-robot/docker/Dockerfile | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/cmso-robot/docker/Dockerfile b/cmso-robot/docker/Dockerfile index b70c16b..aa41520 100644 --- a/cmso-robot/docker/Dockerfile +++ b/cmso-robot/docker/Dockerfile @@ -1,22 +1,51 @@ -FROM robotframework/rfdocker:3.1.1 +FROM ubuntu:16.04 MAINTAINER "CMSO" LABEL name="Docker image for the CMSO Robot Testing Framework" LABEL usage="docker run -e <testname> optf-cmso-robot" +RUN apt-get update +RUN apt-get install -y software-properties-common vim +RUN add-apt-repository ppa:jonathonf/python-3.6 +RUN apt-get update +RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv + +# update pip +RUN python3.6 -m pip install pip --upgrade +RUN python3.6 -m pip install wheel + +RUN apt-get update \ + && apt-get install \ + --no-install-recommends \ + --assume-yes \ + chromium-browser \ + chromium-chromedriver \ + dnsutils \ + git \ + gcc + + COPY /onap-cmso/robot /opt/cmso-robot/robot COPY /onap-cmso/ete.sh /opt/cmso-robot RUN chmod 777 /opt/cmso-robot/ete.sh COPY /onap-cmso/server.py /opt/cmso-robot + + +RUN ln -s /usr/bin/python3.6 /usr/bin/python +RUN python --version +RUN pip --version +RUN pip install robotframework==3.1.1 + RUN pip install Flask +RUN pip install selenium +RUN pip install robotframework-sshlibrary +RUN pip install robotframework-requests ###Just to keep it running CMD ["/usr/bin/python", "/opt/cmso-robot/server.py"] ### Use --entrypoint to override to run the tests test and exit ### --entrypoint /opt/cmso-robot/ete.sh - - |