aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjananib <janani.b@huawei.com>2020-04-30 04:40:13 +0530
committerSeshu Kumar M <seshu.kumar.m@huawei.com>2020-04-30 03:47:36 +0000
commitcd5d6025b12a0ff3e4fa76e1ee8b8ee290fbc2f3 (patch)
treed362fe955ef0389c616718df9de6f3a15765389f
parentf360bafa735753e86c1fb8097594112508c46ec4 (diff)
Docker file for NSSMF-ADAPTER
Bug fix Change-Id: Ibf38c7603180227f85b770b3c030a4c941ea1771 Issue-ID: SO-2775 Signed-off-by: jananib <janani.b@huawei.com> (cherry picked from commit 2dbccbebbeb910284a3a2477f185fc16b5e4da3d)
-rw-r--r--packages/docker/pom.xml24
-rw-r--r--packages/docker/src/main/docker/docker-files/Dockerfile.so-nssmf-adapter32
2 files changed, 56 insertions, 0 deletions
diff --git a/packages/docker/pom.xml b/packages/docker/pom.xml
index 3a9ec375da..4d60279ae8 100644
--- a/packages/docker/pom.xml
+++ b/packages/docker/pom.xml
@@ -251,6 +251,7 @@
<image>
<name>${docker.image.prefix}/nssmf-adapter</name>
<build>
+<<<<<<< HEAD (f360ba resolve problem CreateCommunicationService SST is null)
<cleanup>try</cleanup>
<dockerFile>docker-files/Dockerfile.so-app</dockerFile>
<tags>
@@ -272,6 +273,29 @@
</assembly>
</build>
</image>
+=======
+ <cleanup>try</cleanup>
+ <dockerFile>docker-files/Dockerfile.so-nssmf-adapter</dockerFile>
+ <tags>
+ <tag>${project.version}</tag>
+ <tag>${project.version}-${maven.build.timestamp}</tag>
+ <tag>${project.docker.latesttag.version}</tag>
+ </tags>
+ <assembly>
+ <inline>
+ <dependencySets>
+ <dependencySet>
+ <includes>
+ <include>org.onap.so.adapters:mso-nssmf-adapter</include>
+ </includes>
+ <outputFileNameMapping>app.jar</outputFileNameMapping>
+ </dependencySet>
+ </dependencySets>
+ </inline>
+ </assembly>
+ </build>
+ </image>
+>>>>>>> CHANGE (2dbccb Docker file for NSSMF-ADAPTER)
<image>
<name>${docker.image.prefix}/so-appc-orchestrator</name>
<build>
diff --git a/packages/docker/src/main/docker/docker-files/Dockerfile.so-nssmf-adapter b/packages/docker/src/main/docker/docker-files/Dockerfile.so-nssmf-adapter
new file mode 100644
index 0000000000..ef82da4a12
--- /dev/null
+++ b/packages/docker/src/main/docker/docker-files/Dockerfile.so-nssmf-adapter
@@ -0,0 +1,32 @@
+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"]