-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile.tests
24 lines (17 loc) · 1.04 KB
/
Dockerfile.tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM quay.io/openshiftio/fabric8-analytics-f8a-emr-deployment:latest
LABEL MAINTAINER="Sunil Samal <[email protected]>"
# --------------------------------------------------------------------------------------------------
# copy testing source code and scripts into root dir /
# --------------------------------------------------------------------------------------------------
ADD ./tests/ /tests
ADD ./.git/ /.git
ADD ./tests/scripts/entrypoint-test.sh /entrypoint-test.sh
RUN chmod 0777 /entrypoint-test.sh
ENV PYTHONPATH=/
RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-auth.git@ad3dab5#egg=fabric8a_auth
RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-rudra.git@e9a9239#egg=rudra
RUN pip3 install pytest pytest-cov radon==2.4.0 faker mock
# --------------------------------------------------------------------------------------------------
# RUN THE UNIT TESTS
# --------------------------------------------------------------------------------------------------
ENTRYPOINT ["/entrypoint-test.sh"]