summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..053dd43
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,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"] \ No newline at end of file