summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 053dd434da237d6fcdafcd8284f929d40f915ddd (plain)
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 onap/base_sdc-sanity:1.3.1

RUN apk add --no-cache \
        shadow \
        && :

RUN mkdir ExtentReport logs

COPY chef-solo chef-solo
COPY target/dcae-ci-tests-*-jar-with-dependencies.jar dcae-ci-tests-jar-with-dependencies.jar
COPY target/classes/testSuite/testSuite.xml /testSuite/testSuite.xml
COPY target/classes/conf conf
COPY startup.sh startup.sh

RUN set -x ; \
    groupadd -g 35953 -f dcae ; \
    useradd -u 352070 -g dcae -Gdcae -m -d /home/dcae dcae && exit 0 ; exit 1

RUN chmod 775 startup.sh /testSuite/testSuite.xml /chef-solo /conf /ExtentReport /logs ; \
    chown dcae:dcae startup.sh /testSuite/testSuite.xml /chef-solo /conf /ExtentReport /logs

USER dcae

ENTRYPOINT ["./startup.sh"]