summaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/activity-spec-docker-assembly/Dockerfile
diff options
context:
space:
mode:
authorpriyanshu <pagarwal@amdocs.com>2018-05-28 15:29:26 +0300
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-05-29 08:59:17 +0000
commitdaf0dfe8308a259d168734d3fe98212cadad1a9e (patch)
tree921c28edbda67f876fd88935f0a50fec6eb98e11 /services/activity-spec/activity-spec-web/activity-spec-docker-assembly/Dockerfile
parent80a35922da9c0244e736a87fea3007de92822967 (diff)
Activity Spec docker enhancements
Activity Spec Changes for docker in Kubernetes Change-Id: I987fe097792ccd5d41a0ad811602dad72259d45f Issue-ID: SDC-1048 Signed-off-by: priyanshu <pagarwal@amdocs.com>
Diffstat (limited to 'services/activity-spec/activity-spec-web/activity-spec-docker-assembly/Dockerfile')
-rw-r--r--services/activity-spec/activity-spec-web/activity-spec-docker-assembly/Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/services/activity-spec/activity-spec-web/activity-spec-docker-assembly/Dockerfile b/services/activity-spec/activity-spec-web/activity-spec-docker-assembly/Dockerfile
new file mode 100644
index 0000000000..adbde5e441
--- /dev/null
+++ b/services/activity-spec/activity-spec-web/activity-spec-docker-assembly/Dockerfile
@@ -0,0 +1,24 @@
+FROM jetty:9.4.9-alpine
+
+EXPOSE 8080
+EXPOSE 8443
+EXPOSE 5005
+
+USER root
+
+RUN mkdir -p /etc/onap/activity-spec/be
+RUN mkdir -p /var/log/ONAP/activity-spec/be
+
+ENV CONFIG_FILES_DIR /etc/onap/activity-spec/be
+ENV LOGS_DIR /var/log/ONAP/activity-spec/be
+
+ADD activity-spec-api-docs-*.war ${JETTY_BASE}/webapps/
+ADD activity-spec-war-*.war ${JETTY_BASE}/webapps/
+
+COPY start.sh .
+COPY logback.xml ${CONFIG_FILES_DIR}
+
+RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
+RUN chmod 744 start.sh
+
+ENTRYPOINT [ "./start.sh" ] \ No newline at end of file