Add ping to robot container
[osm/devops.git] / docker / tests / Dockerfile
index 66da9fa..a2c4378 100644 (file)
@@ -27,7 +27,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
     python3 -m easy_install pip==21.0.1
 
 RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install \
+    gettext-base \
     git=1:2.17.1-1ubuntu0.8 \
+    iputils-ping=3:20161105-1ubuntu3 \
+    jq=1.5+dfsg-2 \
     libcurl4-openssl-dev=7.58.0-2ubuntu3.13 \
     libssl-dev=1.1.1-1ubuntu2.1~18.04.9
 
@@ -44,29 +47,19 @@ RUN dpkg -i ./osmclient.deb
 RUN curl $OSM_TESTS_URL -o osm_tests.deb
 RUN dpkg -i ./osm_tests.deb
 
-
 RUN pip3 install \
     -r /usr/lib/python3/dist-packages/osm_im/requirements.txt \
     -r /usr/lib/python3/dist-packages/osmclient/requirements.txt \
     -r /usr/share/osm-tests/requirements.txt
 
+RUN mv /usr/share/osm-tests/robot-systest /robot-systest
+RUN mv /usr/share/osm-tests/charm.sh /usr/sbin/charm
+
 RUN git clone \
     https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git \
     --recurse-submodules \
     /robot-systest/osm-packages
 
-FROM ubuntu:18.04
-
-RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
-    DEBIAN_FRONTEND=noninteractive apt-get --yes install python3-minimal=3.6.7-1~18.04
-
-COPY --from=INSTALL /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages
-COPY --from=INSTALL /usr/local/lib/python3.6/dist-packages  /usr/local/lib/python3.6/dist-packages
-
-COPY --from=INSTALL /usr/share/osm-tests/robot-systest /robot-systest
-COPY --from=INSTALL /usr/share/osm-tests/charm.sh /usr/sbin/charm
-COPY --from=INSTALL /robot-systest/osm-packages /robot-systest/osm-packages
-
 WORKDIR /robot-systest
 
 # Folder where Robot tests are stored