diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-10-05 10:47:41 +0000 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-10-20 07:58:33 +0000 |
commit | 4a71cb63ab876d3d0535da0e4e70d851480a4dd7 (patch) | |
tree | c605f5969cd637976ab4938012961bcf4c3dba13 /smoke-usecases-pythonsdk | |
parent | acba14f7535b60767ce1ad658c45d6dd20047edf (diff) |
[INTEGRATION] Add build arg for smoke-usecases-pythonsdk
Add a flag to the Dockerfile to determine whether to
install the development version of the SDK
Issue-ID: INT-1983
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I6d4c1415c90c75dda1a3a37d3fd696efb2b49b93
Diffstat (limited to 'smoke-usecases-pythonsdk')
-rw-r--r-- | smoke-usecases-pythonsdk/docker/Dockerfile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/smoke-usecases-pythonsdk/docker/Dockerfile b/smoke-usecases-pythonsdk/docker/Dockerfile index 696862a..3a44520 100644 --- a/smoke-usecases-pythonsdk/docker/Dockerfile +++ b/smoke-usecases-pythonsdk/docker/Dockerfile @@ -1,4 +1,6 @@ -FROM opnfv/xtesting:wallaby +ARG PYTHONSDK_VERSION=pythonsdk-release + +FROM opnfv/xtesting:wallaby as pythonsdk-release MAINTAINER Morgan Richomme <morgan.richomme@orange.com> @@ -17,5 +19,9 @@ RUN apk add --no-cache python3 git && \ wget -O $ONAPSDK_PYTHON_PATH/clamp/schema_details.json https://gitlab.com/Orange-OpenSource/lfn/onap/python-onapsdk/-/raw/develop/src/onapsdk/clamp/schema_details.json && \ apk del .build-deps +FROM pythonsdk-release as pythonsdk-develop +RUN pip3 install --no-cache-dir git+https://gitlab.com/Orange-OpenSource/lfn/onap/python-onapsdk@develop#onapsdk + +FROM ${PYTHONSDK_VERSION} as final COPY docker/testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml CMD ["run_tests", "-t", "all"] |