Eran (ev672n), Vosk | 98402fb | 2018-08-06 15:26:20 +0300 | [diff] [blame] | 1 | FROM onap/base_sdc-sanity:1.3.1 |
| 2 | |
| 3 | RUN apk add --no-cache \ |
| 4 | shadow \ |
| 5 | && : |
| 6 | |
| 7 | RUN mkdir ExtentReport logs |
| 8 | |
| 9 | COPY chef-solo chef-solo |
| 10 | COPY target/dcae-ci-tests-*-jar-with-dependencies.jar dcae-ci-tests-jar-with-dependencies.jar |
| 11 | COPY target/classes/testSuite/testSuite.xml /testSuite/testSuite.xml |
| 12 | COPY target/classes/conf conf |
| 13 | COPY startup.sh startup.sh |
| 14 | |
| 15 | RUN set -x ; \ |
| 16 | groupadd -g 35953 -f dcae ; \ |
| 17 | useradd -u 352070 -g dcae -Gdcae -m -d /home/dcae dcae && exit 0 ; exit 1 |
| 18 | |
| 19 | RUN chmod 775 startup.sh /testSuite/testSuite.xml /chef-solo /conf /ExtentReport /logs ; \ |
| 20 | chown dcae:dcae startup.sh /testSuite/testSuite.xml /chef-solo /conf /ExtentReport /logs |
| 21 | |
| 22 | USER dcae |
| 23 | |
| 24 | ENTRYPOINT ["./startup.sh"] |