From 0fbda340e4ccbcc72f7c6864fec973ed0600e99e Mon Sep 17 00:00:00 2001 From: sekharhuawei Date: Thu, 6 Aug 2020 15:43:57 +0530 Subject: New Module mso-cnf-adapter with docker config Issue-ID: SO-3122 Signed-off-by: sekharhuawei Change-Id: I68e3d3340ba49c830cac530086eb0f514f0651eb --- packages/docker/pom.xml | 31 +++++++++++++++++++++- .../docker/docker-files/Dockerfile.mso-cnf-adapter | 28 +++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 packages/docker/src/main/docker/docker-files/Dockerfile.mso-cnf-adapter (limited to 'packages/docker') diff --git a/packages/docker/pom.xml b/packages/docker/pom.xml index c260e12123..d6fa44048d 100644 --- a/packages/docker/pom.xml +++ b/packages/docker/pom.xml @@ -101,6 +101,30 @@ + + + ${docker.image.prefix}/mso-cnf-adapter + + try + docker-files/Dockerfile.mso-cnf-adapter + + ${project.version} + ${project.version}-${maven.build.timestamp} + ${project.docker.latesttag.version} + + + + + + + org.onap.so.adapters:mso-cnf-adapter + + app.jar + + + + + ${docker.image.prefix}/catalog-db-adapter @@ -421,7 +445,7 @@ push - ${docker.image.prefix}/catalog-db-adapter,${docker.image.prefix}/request-db-adapter,${docker.image.prefix}/sdnc-adapter,${docker.image.prefix}/openstack-adapter,${docker.image.prefix}/vfc-adapter,${docker.image.prefix}/sdc-controller,${docker.image.prefix}/bpmn-infra,${docker.image.prefix}/api-handler-infra,${docker.image.prefix}/so-monitoring,${docker.image.prefix}/so-simulator,${docker.image.prefix}/mso-nssmf-adapter + ${docker.image.prefix}/catalog-db-adapter,${docker.image.prefix}/request-db-adapter,${docker.image.prefix}/sdnc-adapter,${docker.image.prefix}/openstack-adapter,${docker.image.prefix}/vfc-adapter,${docker.image.prefix}/sdc-controller,${docker.image.prefix}/bpmn-infra,${docker.image.prefix}/api-handler-infra,${docker.image.prefix}/so-monitoring,${docker.image.prefix}/so-simulator,${docker.image.prefix}/mso-nssmf-adapter,${docker.image.prefix}/mso-cnf-adapter @@ -449,6 +473,11 @@ mso-catalog-db-adapter ${project.version} + + org.onap.so.adapters + mso-cnf-adapter + ${project.version} + org.onap.so.adapters mso-requests-db-adapter 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"] + -- cgit 1.2.3-korg