diff options
author | Jack Lucas <jflos@sonoris.net> | 2023-06-29 14:04:59 -0400 |
---|---|---|
committer | Jack Lucas <jflos@sonoris.net> | 2023-07-12 11:30:16 -0400 |
commit | 749b1c868b6da462fdfc24f02e0a56dadb7a266f (patch) | |
tree | 7b682e85420ddad14e547bf9669a746cedec2a22 /datarouter-prov-client/pom.xml | |
parent | 05f8d291b9d420adb977aaa26cf270095fa3838c (diff) |
Add DR provisioning client initContainer2.1.14
Add initContainer code to provision DR feeds
and subscriptions, replacing dbc-client.
Issue-ID: DMAAP-1893
Signed-off-by: Jack Lucas <jflos@sonoris.net>
Change-Id: I43d8eaf199ff8327fbcc01f756f6506f3768cb95
Diffstat (limited to 'datarouter-prov-client/pom.xml')
-rw-r--r-- | datarouter-prov-client/pom.xml | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/datarouter-prov-client/pom.xml b/datarouter-prov-client/pom.xml new file mode 100644 index 00000000..4188fbfe --- /dev/null +++ b/datarouter-prov-client/pom.xml @@ -0,0 +1,113 @@ +<?xml version="1.0"?> +<!-- + ============LICENSE_START========================================== + Copyright (c) J. F. Lucas. All rights reserved. + =================================================================== + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ============LICENSE_END============================================ +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <artifactId>datarouter-prov-client</artifactId> + <name>datarouter-prov-client</name> + <parent> + <groupId>org.onap.dmaap.datarouter</groupId> + <artifactId>parent</artifactId> + <version>${revision}</version> + <relativePath>../pom.xml</relativePath> + </parent> + <description>Init container for provisioning Data Router feeds, publishers, and subscribers.</description> + <properties> + <docker.location>${basedir}/target/${project.artifactId}</docker.location> + <dmaapdrprovclient.image.name>${docker.image.root}${project.artifactId}</dmaapdrprovclient.image.name> + <sitePath>/content/sites/site/org/onap/dmaap/drprov-client/${project.version}</sitePath> + </properties> + <build> + <finalName>datarouter-prov-client</finalName> + <!-- Copy files to docker-stage to be included in image --> + <resources> + <resource> + <targetPath>${basedir}/target/docker-stage</targetPath> + <directory>${basedir}/src/main/resources</directory> + <includes> + <include>Dockerfile</include> + </includes> + </resource> + <resource> + <targetPath>${basedir}/target/docker-stage/opt/app/drprov-client/bin</targetPath> + <directory>${basedir}/misc</directory> + <includes> + <include>drprov-client.sh</include> + </includes> + </resource> + </resources> + </build> + <profiles> + <profile> + <id>docker</id> + <properties> + <skipDockerBuild>${skip.docker.build}</skipDockerBuild> + <skipTests>true</skipTests> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.gmaven</groupId> + <artifactId>gmaven-plugin</artifactId> + </plugin> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <images> + <image> + <name>${dmaapdrprovclient.image.name}</name> + <build> + <cleanup>try</cleanup> + <noCache>true</noCache> + <optimise>true</optimise> + <contextDir>${basedir}/target/docker-stage</contextDir> + <dockerFile>Dockerfile</dockerFile> + <tags> + <tag>${dockertag1}</tag> + <tag>${dockertag2}</tag> + </tags> + </build> + </image> + </images> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>install</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>push</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> |