aboutsummaryrefslogtreecommitdiffstats
path: root/smoke-usecases-pythonsdk/docker
diff options
context:
space:
mode:
Diffstat (limited to 'smoke-usecases-pythonsdk/docker')
-rw-r--r--smoke-usecases-pythonsdk/docker/Dockerfile8
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"]