blob: 50bf4d15a2298ef0df81146f75be03f6dc96ed5d [file] [log] [blame]
rameshiyer27181e6c52023-03-30 10:50:18 +01001FROM nexus3.onap.org:10001/library/python:3.10-slim-bullseye
adheli.tavares1f339f82023-02-17 15:14:07 +00002ARG CSIT_SCRIPT=${CSIT_SCRIPT}
3ARG ROBOT_FILE=${ROBOT_FILE}
adheli.tavares5980fb42023-03-16 16:31:11 +00004ENV ROBOT_WORKSPACE=/opt/robotworkspace ROBOT_FILE=$ROBOT_FILE
5RUN 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.tavares1f339f82023-02-17 15:14:07 +00008RUN mkdir -p ${ROBOT_WORKSPACE}
adheli.tavares5980fb42023-03-16 16:31:11 +00009COPY ${CSIT_SCRIPT} tests/ ${ROBOT_WORKSPACE}/
adheli.tavares1f339f82023-02-17 15:14:07 +000010WORKDIR ${ROBOT_WORKSPACE}
adheli.tavares1f339f82023-02-17 15:14:07 +000011CMD ["sh", "-c", "./run-test.sh" , "${ROBOT_FILE}"]