diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2023-03-16 16:31:11 +0000 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2023-03-31 10:01:43 +0100 |
commit | 5980fb4d758c2ee55fad90661d039920dcc0ebe6 (patch) | |
tree | e208f346bd7b25a62c8beaa4bad3e114562f6f81 /csit/resources/Dockerfile | |
parent | e4ff7e58336dfb4fa6699e0a37dbbb298a129ada (diff) |
Improvements to scripts and test configuration
- reduced csit image for k8s test from 1gb to 230mb
- fixed some small hindrances with start-compose.sh
- added README for how to use and configure compose script
- cleaning of Chart.lock as it fails helm install if outdated even
after running helm dependencies update
Issue-ID: POLICY-4125
Change-Id: If1711523bb836c212f27a032a46cc18d68766478
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/resources/Dockerfile')
-rw-r--r-- | csit/resources/Dockerfile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/csit/resources/Dockerfile b/csit/resources/Dockerfile index 4e68ea3a..50bf4d15 100644 --- a/csit/resources/Dockerfile +++ b/csit/resources/Dockerfile @@ -1,14 +1,11 @@ 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 -ENV ROBOT_FILE $ROBOT_FILE -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.5.1.*' --pre -RUN python3 -m pip freeze +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 freeze RUN mkdir -p ${ROBOT_WORKSPACE} -COPY ${CSIT_SCRIPT} ${ROBOT_WORKSPACE}/ -COPY tests/ ${ROBOT_WORKSPACE}/ +COPY ${CSIT_SCRIPT} tests/ ${ROBOT_WORKSPACE}/ WORKDIR ${ROBOT_WORKSPACE} -RUN chmod +x run-test.sh CMD ["sh", "-c", "./run-test.sh" , "${ROBOT_FILE}"] |