rameshiyer27 | 181e6c5 | 2023-03-30 10:50:18 +0100 | [diff] [blame] | 1 | FROM nexus3.onap.org:10001/library/python:3.10-slim-bullseye |
adheli.tavares | 1f339f8 | 2023-02-17 15:14:07 +0000 | [diff] [blame] | 2 | ARG CSIT_SCRIPT=${CSIT_SCRIPT} |
| 3 | ARG ROBOT_FILE=${ROBOT_FILE} |
adheli.tavares | 5980fb4 | 2023-03-16 16:31:11 +0000 | [diff] [blame] | 4 | ENV ROBOT_WORKSPACE=/opt/robotworkspace ROBOT_FILE=$ROBOT_FILE |
| 5 | RUN python3 -m pip install --upgrade pip && \ |
| 6 | python3 -m pip install --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.6.0.*' --pre && \ |
| 7 | python3 -m pip freeze |
adheli.tavares | 1f339f8 | 2023-02-17 15:14:07 +0000 | [diff] [blame] | 8 | RUN mkdir -p ${ROBOT_WORKSPACE} |
adheli.tavares | 5980fb4 | 2023-03-16 16:31:11 +0000 | [diff] [blame] | 9 | COPY ${CSIT_SCRIPT} tests/ ${ROBOT_WORKSPACE}/ |
adheli.tavares | 1f339f8 | 2023-02-17 15:14:07 +0000 | [diff] [blame] | 10 | WORKDIR ${ROBOT_WORKSPACE} |
adheli.tavares | 1f339f8 | 2023-02-17 15:14:07 +0000 | [diff] [blame] | 11 | CMD ["sh", "-c", "./run-test.sh" , "${ROBOT_FILE}"] |