summaryrefslogtreecommitdiffstats
path: root/packages/docker/src
diff options
context:
space:
mode:
authorsekharhuawei <reddi.shekhar@huawei.com>2020-08-06 15:43:57 +0530
committerreddi sekhar <reddi.shekhar@huawei.com>2020-08-07 07:01:37 +0000
commit0fbda340e4ccbcc72f7c6864fec973ed0600e99e (patch)
treef4d36f5b568dfc2315830cca8f68c8747337f8f8 /packages/docker/src
parent8d22b943bd389d81fe9ea10ee4c1f2d27326910a (diff)
New Module mso-cnf-adapter with docker config
Issue-ID: SO-3122 Signed-off-by: sekharhuawei <reddi.shekhar@huawei.com> Change-Id: I68e3d3340ba49c830cac530086eb0f514f0651eb
Diffstat (limited to 'packages/docker/src')
-rw-r--r--packages/docker/src/main/docker/docker-files/Dockerfile.mso-cnf-adapter28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/docker/src/main/docker/docker-files/Dockerfile.mso-cnf-adapter b/packages/docker/src/main/docker/docker-files/Dockerfile.mso-cnf-adapter
new file mode 100644
index 0000000000..57c1791c91
--- /dev/null
+++ b/packages/docker/src/main/docker/docker-files/Dockerfile.mso-cnf-adapter
@@ -0,0 +1,28 @@
+
+FROM onap/so/base-image:1.0
+ARG http_proxy
+ENV HTTP_PROXY=$http_proxy
+ENV http_proxy=$HTTP_PROXY
+ARG https_proxy
+ENV HTTPS_PROXY=$https_proxy
+ENV https_proxy=$HTTPS_PROXY
+USER root
+RUN mkdir -p /app/config
+RUN mkdir -p /app/certificates
+RUN mkdir -p /app/logs
+RUN mkdir -p /app/ca-certificates
+RUN apk update && apk add apache2-utils -y
+COPY maven/app.jar /app
+COPY configs/logging/logback-spring.xml /app
+COPY scripts/start-app.sh /app
+COPY scripts/wait-for.sh /app
+COPY ca-certificates/onap-ca.crt /app/ca-certificates/onap-ca.crt
+RUN chown -R so:so /app
+USER so
+# Springboot configuration (required)
+VOLUME /app/config
+# Root certificates (optional)
+VOLUME /app/ca-certificates
+WORKDIR /app
+ENTRYPOINT ["/app/start-app.sh"]
+