aboutsummaryrefslogtreecommitdiffstats
path: root/healthcheck/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'healthcheck/docker/Dockerfile')
-rw-r--r--healthcheck/docker/Dockerfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/healthcheck/docker/Dockerfile b/healthcheck/docker/Dockerfile
new file mode 100644
index 0000000..d631129
--- /dev/null
+++ b/healthcheck/docker/Dockerfile
@@ -0,0 +1,39 @@
+FROM opnfv/xtesting
+
+ARG OPENSTACK_TAG=master
+ARG OPNFV_TAG=master
+ARG ONAP_TAG=master
+ARG PIP_TAG=18.0
+
+ENV PYTHONPATH $PYTHONPATH:/src/testing-utils/robotframework-onap/eteutils
+ENV TAG all
+
+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 && \
+ pip3 install --upgrade pip && \
+ pip3 install --no-cache-dir \
+ git+https://git.onap.org/testsuite/heatbridge.git@$ONAP_TAG#egg=heatbridge\&subdirectory=heatbridge \
+ git+https://git.onap.org/testsuite/python-testing-utils.git@$ONAP_TAG#egg=robotframework-onap\&subdirectory=robotframework-onap && \
+ git clone --depth 1 https://git.onap.org/testsuite -b $ONAP_TAG /var/opt/ONAP && \
+ git clone --depth 1 https://git.onap.org/demo -b $ONAP_TAG /src/demo && \
+ pip install \
+ -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
+ pip==$PIP_TAG && \
+ pip install \
+ -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
+ -rrequirements.txt && \
+ mkdir -p /var/opt/ONAP/demo/heat && cp -Rf /src/demo/heat/vFW /var/opt/ONAP/demo/heat/ && \
+ mkdir -p /demo/service_mapping && cp -Rf /src/demo/service_mapping /demo/ && \
+ mkdir -p /var/opt/ONAP/demo/preload_data && cp -Rf /src/demo/preload_data /var/opt/ONAP/demo/ && \
+ ln -s /usr/lib/python3.7/site-packages/vcpeutils /usr/lib/python3.7/site-packages/SoUtils && \
+ ln -s /usr/lib/python3.7/site-packages/heatbridge /usr/lib/python3.7/site-packages/HeatBridge && \
+ rm -r requirements.txt /var/opt/ONAP/.git /src/demo && \
+ cd / && ln -s /var/opt/ONAP/robot/ /robot && \
+ apk del .build-deps
+
+COPY docker/testcases.yaml /usr/lib/python3.7/site-packages/xtesting/ci/testcases.yaml
+COPY scripts/cmd.sh /
+CMD ["/cmd.sh"]