From 65279626aae2c414f023a85feb9e3fee41e7215c Mon Sep 17 00:00:00 2001 From: Brinda Santh Date: Fri, 6 Sep 2019 14:37:04 -0400 Subject: Refactor distribution module to application. Change-Id: If6451215e1d1c3b1b5963bbe5c6cda1532f01ac5 Issue-ID: CCSDK-1697 Signed-off-by: Brinda Santh --- .../distribution/src/main/docker/Dockerfile | 18 ------- .../distribution/src/main/docker/distribution.xml | 62 ---------------------- .../distribution/src/main/docker/run.source | 12 ----- .../distribution/src/main/docker/startService.sh | 10 ---- 4 files changed, 102 deletions(-) delete mode 100755 ms/blueprintsprocessor/distribution/src/main/docker/Dockerfile delete mode 100755 ms/blueprintsprocessor/distribution/src/main/docker/distribution.xml delete mode 100755 ms/blueprintsprocessor/distribution/src/main/docker/run.source delete mode 100644 ms/blueprintsprocessor/distribution/src/main/docker/startService.sh (limited to 'ms/blueprintsprocessor/distribution/src/main/docker') diff --git a/ms/blueprintsprocessor/distribution/src/main/docker/Dockerfile b/ms/blueprintsprocessor/distribution/src/main/docker/Dockerfile deleted file mode 100755 index dab0a4c01..000000000 --- a/ms/blueprintsprocessor/distribution/src/main/docker/Dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -FROM omahoco1/alpine-java-python - -ENV HTTP_PROXY ${HTTP_PROXY} -ENV HTTPS_PROXY ${HTTPS_PROXY} - -# add entrypoint -COPY run.source /etc/run.source -COPY startService.sh /startService.sh -RUN chmod 777 /startService.sh && dos2unix /startService.sh - -# add application -COPY @project.build.finalName@-@assembly.id@.tar.gz /source.tar.gz -RUN tar -xzf /source.tar.gz -C /tmp \ - && cp -rf /tmp/@project.build.finalName@/opt / \ - && rm -rf /source.tar.gz \ - && rm -rf /tmp/@project.build.finalName@ - -ENTRYPOINT /startService.sh \ No newline at end of file diff --git a/ms/blueprintsprocessor/distribution/src/main/docker/distribution.xml b/ms/blueprintsprocessor/distribution/src/main/docker/distribution.xml deleted file mode 100755 index ba799ea7f..000000000 --- a/ms/blueprintsprocessor/distribution/src/main/docker/distribution.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - ${assembly.id} - - tar.gz - - - - /opt/app/onap/lib - ${artifact.groupId}-${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension} - - org.slf4j:slf4j-simple - org.apache.karaf.* - - - - - - ${project.basedir}/../application/src/main/resources - - application.properties - logback.xml - - /opt/app/onap/config - true - - - ${project.basedir}/../../../components/model-catalog - /opt/app/onap/model-catalog - - blueprint-model/service-blueprint/** - definition-type/starter-type/** - resource-dictionary/starter-dictionary/** - - - - ${project.basedir}/../../../components/scripts/python - /opt/app/onap/scripts/jython - true - - - \ No newline at end of file diff --git a/ms/blueprintsprocessor/distribution/src/main/docker/run.source b/ms/blueprintsprocessor/distribution/src/main/docker/run.source deleted file mode 100755 index e84dacd6b..000000000 --- a/ms/blueprintsprocessor/distribution/src/main/docker/run.source +++ /dev/null @@ -1,12 +0,0 @@ -java -classpath "/etc:${APP_HOME}/lib/*:/lib/*:/src:/schema:/generated-sources:${APP_CONFIG_HOME}:${APP_HOME}" \ --DappName=${APPLICATIONNAME} -DappVersion=${BUNDLEVERSION} \ --DrouteOffer=${ROUTEOFFER} \ --DVERSION_ROUTEOFFER_ENVCONTEXT=${BUNDLEVERSION}/${STICKYSELECTORKEY}/${ENVCONTEXT} \ --DSecurityFilePath=/etc \ --DREST_NAME_NORMALIZER_PATTERN_FILE=/etc/PatternInputs.txt \ --Dms_name=org.onap.ccsdk.cds.blueprintsprocessor \ --Dlogging.config=${APP_CONFIG_HOME}/logback.xml \ --Djava.security.egd=file:/dev/./urandom \ --DAPPNAME=${APP_NAME} -DAPPENV=${APP_ENV} -DAPPVERSION=${APP_VERSION} -DNAMESPACE=${NAMESPACE} \ --Dspring.config.location=${APP_CONFIG_HOME}/ \ -org.onap.ccsdk.cds.blueprintsprocessor.BlueprintProcessorApplication diff --git a/ms/blueprintsprocessor/distribution/src/main/docker/startService.sh b/ms/blueprintsprocessor/distribution/src/main/docker/startService.sh deleted file mode 100644 index 14d772e41..000000000 --- a/ms/blueprintsprocessor/distribution/src/main/docker/startService.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -nodeName=BlueprintsProcessor_1.0.0_$(cat /proc/self/cgroup | grep docker | sed s/\\//\\n/g | tail -1) - -echo "APP Config HOME : ${APP_CONFIG_HOME}" -export APP_HOME=/opt/app/onap - -keytool -import -noprompt -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -alias ONAP -import -file $APP_CONFIG_HOME/ONAP_RootCA.cer - -source /etc/run.source -- cgit 1.2.3-korg