IMPL: RICPLT-3081 Automate O1 med flow
[it/test.git] / ric_robot_suite / docker / ric-robot / Dockerfile
index 387c9d7..aa8e0a4 100644 (file)
@@ -31,12 +31,16 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
 ENV BUILDTIME=true
 
 # Install Python, Pip, Robot framework, chromium, lighttpd web server
+
+# temporarily removed chromium-browser and chromium-chromedriver as
+# they've moved to snaps and we don't have snapd support in this container
+# yet. This will break robot tests that depend on the browser, but we don't
+# have those in the RIC at this point anyway.
+
 RUN apt-get update \
     && apt-get install \
         --no-install-recommends \
         --assume-yes \
-            chromium-browser \
-            chromium-chromedriver \
             dnsutils \
             git \
             gcc \
@@ -47,11 +51,9 @@ RUN apt-get update \
             net-tools \
             php  \
             php-cgi \
-            python2.7 \
+            python3-pip \
             python-dev \
             python-setuptools \
-            python-wheel \
-            python-pip \
             python-redis \
             unzip \
             vim   \
@@ -61,18 +63,18 @@ RUN apt-get update \
             xxd
 
 
-RUN pip install robotframework==3.0.4 \
+RUN pip3 install robotframework==3.0.4 \
     && python --version
 
 # Copy the robot code
 
 COPY robot /var/opt/RIC/robot
-COPY red.xml /var/opt/RIC
-COPY ric-python-utils /var/opt/RIC
-COPY runTags.sh /var/opt/RIC
-COPY setup.sh /var/opt/RIC
-COPY version.properties /var/opt/RIC
-COPY README.md /var/opt/RIC
+COPY docker/ric-robot/red.xml /var/opt/RIC
+COPY ric-python-utils /var/opt/RIC/ric-python-utils
+COPY docker/ric-robot/runTags.sh /var/opt/RIC
+COPY docker/ric-robot/setup.sh /var/opt/RIC
+COPY docker/ric-robot/version.properties /var/opt/RIC
+COPY docker/ric-robot/README.md /var/opt/RIC
 COPY docker/ric-robot/lighttpd.conf /etc/lighttpd/lighttpd.conf
 COPY docker/ric-robot/authorization /etc/lighttpd/authorization