diff options
author | 2021-09-22 17:38:21 +0200 | |
---|---|---|
committer | 2021-09-23 17:26:51 +0200 | |
commit | 3f9004309cb6baaae3196b6a2cf39559c7fcf7af (patch) | |
tree | ab3794bd462e681fc4df4b6df25effa83ef6fa54 /smoke-usecases-robot-py3/docker/Dockerfile | |
parent | 2049d412b36ae2623ecdb970656d30f69114a2b8 (diff) |
[CPS] Create a new Python3 based robot docker for CPS
In order to execute CPS tests in the CI, it is needed to create
a robot xtesting dockers as the existing dockers are still using
old robot libraries to match dependencies with heatbridge/selenium
A full refactoring is planned for Jakarata
This new docker could be used as a baseline
Issue-ID: CPS-654
Signed-off-by: morganrol <morgan.richomme@orange.com>
Change-Id: I49af71b1cda0cadc0837cae0f3f5b47745efff11
Diffstat (limited to 'smoke-usecases-robot-py3/docker/Dockerfile')
-rw-r--r-- | smoke-usecases-robot-py3/docker/Dockerfile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/smoke-usecases-robot-py3/docker/Dockerfile b/smoke-usecases-robot-py3/docker/Dockerfile new file mode 100644 index 0000000..1caf0f5 --- /dev/null +++ b/smoke-usecases-robot-py3/docker/Dockerfile @@ -0,0 +1,39 @@ +FROM opnfv/xtesting:wallaby + +MAINTAINER Morgan Richomme <morgan.richomme@orange.com> + +ARG OPENSTACK_TAG=master +ARG OPNFV_TAG=master +ARG ONAP_TAG=master +ARG PIP_TAG=21.2.4 +ARG KUBERNETES_VERSION="v1.19.9" + +ENV TAG all +ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1 + +# Install kubectl +# Note: Latest version may be found on: +# https://aur.archlinux.org/packages/kubectl-bin/ + +COPY requirements.txt requirements.txt +RUN apk --no-cache add --update openssl && \ + apk --no-cache add --virtual .build-deps --update \ + python3-dev build-base linux-headers libffi-dev \ + openssl-dev libjpeg-turbo-dev && \ + git clone --depth 1 https://github.com/onap/cps.git -b $ONAP_TAG /cps && \ + find /cps -mindepth 1 -name csit -prune -o -exec rm -rf {} + && \ + pip install --upgrade pip && \ + pip install --no-cache-dir \ + pip install \ + -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \ + pip==$PIP_TAG && \ + pip install \ + -rrequirements.txt && \ + rm -r requirements.txt && \ + cd / && ln -s /var/opt/ONAP/robot/ /robot && \ + apk del .build-deps + +COPY docker/testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml +COPY scripts/cmd.sh / +CMD ["/cmd.sh"] + |