summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/docker/pom.xml32
-rw-r--r--packages/docker/src/main/docker/docker-files/Dockerfile.so-cnfm-app50
2 files changed, 80 insertions, 2 deletions
diff --git a/packages/docker/pom.xml b/packages/docker/pom.xml
index ee1bbd9..2df3f49 100755
--- a/packages/docker/pom.xml
+++ b/packages/docker/pom.xml
@@ -99,7 +99,30 @@
</assembly>
</build>
</image>
-
+ <image>
+ <name>${docker.image.prefix}/so-cnfm-as-lcm</name>
+ <build>
+ <cleanup>try</cleanup>
+ <dockerFile>docker-files/Dockerfile.so-cnfm-app</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.so-cnf-adapter.so-cnfm.lcm:so-cnfm-lcm-application</include>
+ </includes>
+ <outputFileNameMapping>app.jar</outputFileNameMapping>
+ </dependencySet>
+ </dependencySets>
+ </inline>
+ </assembly>
+ </build>
+ </image>
</images>
</configuration>
@@ -131,7 +154,7 @@
<goal>push</goal>
</goals>
<configuration>
- <image>${docker.image.prefix}/so-cnf-adapter</image>
+ <image>${docker.image.prefix}/so-cnf-adapter,${docker.image.prefix}/so-cnfm-as-lcm</image>
</configuration>
</execution>
</executions>
@@ -153,5 +176,10 @@
<artifactId>so-cnf-adapter-application</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.onap.so.adapters.so-cnf-adapter.so-cnfm.lcm</groupId>
+ <artifactId>so-cnfm-lcm-application</artifactId>
+ <version>${project.version}</version>
+ </dependency>
</dependencies>
</project> \ No newline at end of file
diff --git a/packages/docker/src/main/docker/docker-files/Dockerfile.so-cnfm-app b/packages/docker/src/main/docker/docker-files/Dockerfile.so-cnfm-app
new file mode 100644
index 0000000..eb85e3b
--- /dev/null
+++ b/packages/docker/src/main/docker/docker-files/Dockerfile.so-cnfm-app
@@ -0,0 +1,50 @@
+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
+ARG KUBECTL_VERSION=v1.21.1
+ARG HELM_VERSION=v3.5.2
+
+USER root
+RUN mkdir -p /app/config
+RUN mkdir -p /app/certificates
+RUN mkdir -p /app/logs
+RUN mkdir -p /app/ca-certificates
+RUN mkdir -p /app/csar
+RUN mkdir -p /app/kube-configs
+
+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
+
+
+ENV TAR_FILE="helm-${HELM_VERSION}-linux-amd64.tar.gz"
+
+RUN wget https://get.helm.sh/${TAR_FILE} && \
+ tar xvf ${TAR_FILE} && \
+ chmod +x linux-amd64/helm && \
+ mv linux-amd64/helm /usr/local/bin && \
+ rm -rf linux-amd64 && \
+ rm ${TAR_FILE}
+
+RUN wget https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
+ chmod +x kubectl && \
+ mv kubectl /usr/local/bin/kubectl
+
+USER so
+
+# Springboot configuration (required)
+VOLUME /app/config
+
+# Root certificates (optional)
+VOLUME /app/ca-certificates
+
+WORKDIR /app
+ENTRYPOINT ["/app/start-app.sh"]