summaryrefslogtreecommitdiffstats
path: root/csit/resources/Dockerfile
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2024-05-01 14:08:35 +0100
committeradheli.tavares <adheli.tavares@est.tech>2024-05-14 11:33:11 +0100
commit80e382eaac6fa812ea0c242c4a0c3a0390a4c130 (patch)
treefa984ad999edefa4f3affba4070415e94fffbb5f /csit/resources/Dockerfile
parentaed46b6a5bfe0680043a2fd2239f642aee5902d7 (diff)
Restructure of CSIT scripts
- CSIT robot test suits are now compiled into a docker image - dependencies are now installed as part of Dockerfile build Issue-ID: POLICY-4987 Change-Id: I5ae4e9f58471a6038c25548d9392ece78b20e67a Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/resources/Dockerfile')
-rw-r--r--csit/resources/Dockerfile12
1 files changed, 6 insertions, 6 deletions
diff --git a/csit/resources/Dockerfile b/csit/resources/Dockerfile
index 9a43663a..786293d3 100644
--- a/csit/resources/Dockerfile
+++ b/csit/resources/Dockerfile
@@ -1,12 +1,12 @@
FROM nexus3.onap.org:10001/library/python:3.10-slim-bullseye
ARG CSIT_SCRIPT=${CSIT_SCRIPT}
ARG ROBOT_FILE=${ROBOT_FILE}
-ENV ROBOT_WORKSPACE=/opt/robotworkspace ROBOT_FILE=$ROBOT_FILE
-RUN python3 -m pip install --upgrade pip && \
- python3 -m pip install --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.6.0.*' --pre && \
- python3 -m pip install --upgrade confluent-kafka && \
+ENV ROBOT_WORKSPACE=/opt/robotworkspace ROBOT_FILE=$ROBOT_FILE CLAMP_K8S_TEST=$CLAMP_K8S_TEST
+RUN python3 -m pip -qq install --upgrade pip && \
+ python3 -m pip -qq install --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.6.0.*' --pre && \
+ python3 -m pip -qq install --upgrade confluent-kafka && \
python3 -m pip freeze
RUN mkdir -p ${ROBOT_WORKSPACE}
-COPY ${CSIT_SCRIPT} tests/ ${ROBOT_WORKSPACE}/
+COPY scripts/run-test.sh tests/ ${ROBOT_WORKSPACE}/
WORKDIR ${ROBOT_WORKSPACE}
-CMD ["sh", "-c", "./run-test.sh" , "${ROBOT_FILE}"]
+CMD ["sh", "-c", "./run-test.sh" ]