blob: 7228de556b92de48e6df6912a8257e32533dafc5 [file] [log] [blame]
mmis824a75e2018-03-02 18:04:48 +00001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy Engine - Docker files
4 ================================================================================
Jim Hahn43cb6712021-07-20 09:52:25 -04005 Copyright (C) 2017-2018, 2021 AT&T Intellectual Property. All rights reserved.
Rashmi Pujarbb03caf2020-01-24 15:34:04 -05006 Modifications Copyright (C) 2019-2020 Bell Canada.
liamfallon3e44f6d2023-02-17 19:17:02 +00007 Modifications Copyright (C) 2022-2023 Nordix Foundation.
mmis824a75e2018-03-02 18:04:48 +00008 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
21 -->
22
liamfallon99200202018-10-31 16:00:08 +000023<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/xsd/maven-4.0.0.xsd">
mmis824a75e2018-03-02 18:04:48 +000024
Pamela Dragoshfd307be2018-08-28 18:10:51 -040025 <modelVersion>4.0.0</modelVersion>
mmis824a75e2018-03-02 18:04:48 +000026
Pamela Dragoshfd307be2018-08-28 18:10:51 -040027 <parent>
28 <groupId>org.onap.policy.drools-pdp</groupId>
Ram Krishna Verma565dc1f2020-02-05 16:51:06 -050029 <artifactId>drools-packages</artifactId>
liamfallon3e9a5662023-05-25 09:41:12 +010030 <version>2.0.0-SNAPSHOT</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040031 </parent>
mmis824a75e2018-03-02 18:04:48 +000032
Pamela Dragoshfd307be2018-08-28 18:10:51 -040033 <artifactId>docker</artifactId>
34 <packaging>pom</packaging>
35 <name>Policy Drools PDP - Docker build</name>
36 <description>ONAP Policy Drools PDP Docker Build</description>
mmis824a75e2018-03-02 18:04:48 +000037
Pamela Dragoshfd307be2018-08-28 18:10:51 -040038 <properties>
Rashmi Pujar7937bce2019-06-03 21:45:58 -040039 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41 <dist.project.version>${project.version}</dist.project.version>
42 <docker.skip>false</docker.skip>
43 <docker.skip.build>false</docker.skip.build>
44 <docker.skip.push>false</docker.skip.push>
liamfallon7ddbdd82021-04-19 14:15:10 +010045 <docker.skip.deployconfig>true</docker.skip.deployconfig>
danielhanrahanef321be2022-09-02 14:20:40 +010046 <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
Rashmi Pujar7937bce2019-06-03 21:45:58 -040047 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
48 <docker.buildArg.BUILD_VERSION_DROOLS>${project.version}</docker.buildArg.BUILD_VERSION_DROOLS>
Rashmi Pujarbb03caf2020-01-24 15:34:04 -050049 <docker.buildArg.MVN_SNAPSHOT_REPO_URL>${nexusproxy}/${snapshots.path}</docker.buildArg.MVN_SNAPSHOT_REPO_URL>
50 <docker.buildArg.MVN_RELEASE_REPO_URL>${nexusproxy}/${releases.path}</docker.buildArg.MVN_RELEASE_REPO_URL>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040051 </properties>
mmis824a75e2018-03-02 18:04:48 +000052
Pamela Dragoshfd307be2018-08-28 18:10:51 -040053 <build>
Rashmi Pujar7937bce2019-06-03 21:45:58 -040054 <finalName>${project.artifactId}-${project.version}</finalName>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040055 <plugins>
56 <plugin>
Taka Cho1c200702021-08-09 14:10:24 -040057 <groupId>org.codehaus.gmaven</groupId>
58 <artifactId>groovy-maven-plugin</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040059 <executions>
60 <execution>
Rashmi Pujar7937bce2019-06-03 21:45:58 -040061 <phase>validate</phase>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040062 <goals>
Rashmi Pujar7937bce2019-06-03 21:45:58 -040063 <goal>execute</goal>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040064 </goals>
65 <configuration>
Taka Cho1c200702021-08-09 14:10:24 -040066 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040067 </configuration>
68 </execution>
69 </executions>
70 </plugin>
danielhanrahanbbc16d32022-06-28 12:32:17 +010071
72 <plugin>
73 <groupId>io.github.git-commit-id</groupId>
74 <artifactId>git-commit-id-maven-plugin</artifactId>
danielhanrahanbbc16d32022-06-28 12:32:17 +010075 </plugin>
76
Pamela Dragoshfd307be2018-08-28 18:10:51 -040077 <plugin>
Rashmi Pujar7937bce2019-06-03 21:45:58 -040078 <groupId>io.fabric8</groupId>
79 <artifactId>docker-maven-plugin</artifactId>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040080 <configuration>
Rashmi Pujar7937bce2019-06-03 21:45:58 -040081 <verbose>true</verbose>
82 <apiVersion>1.23</apiVersion>
83 <pullRegistry>${docker.pull.registry}</pullRegistry>
84 <pushRegistry>${docker.push.registry}</pushRegistry>
85 <images>
86 <image>
87 <name>onap/policy-drools</name>
88 <build>
89 <cleanup>try</cleanup>
danielhanrahanc3071632022-06-22 11:56:23 +010090 <dockerFile>${dockerFile}</dockerFile>
danielhanrahanef321be2022-09-02 14:20:40 +010091 <contextDir>${docker.contextDir}</contextDir>
Rashmi Pujar7937bce2019-06-03 21:45:58 -040092 <tags>
93 <tag>${project.version}</tag>
94 <tag>${project.version}-${maven.build.timestamp}</tag>
95 <tag>${project.docker.latest.minmax.tag.version}</tag>
96 </tags>
97 <assembly>
98 <inline>
99 <dependencySets>
100 <dependencySet>
101 <includes>
102 <include>org.onap.policy.drools-pdp:install-drools</include>
103 </includes>
104 <outputDirectory>.</outputDirectory>
105 <outputFileNameMapping>install-drools.zip</outputFileNameMapping>
106 </dependencySet>
107 </dependencySets>
108 </inline>
109 </assembly>
110 </build>
111 </image>
112 </images>
113 </configuration>
114 <executions>
115 <execution>
116 <id>clean-images</id>
117 <phase>pre-clean</phase>
118 <goals>
119 <goal>remove</goal>
120 </goals>
121 <configuration>
122 <removeAll>true</removeAll>
123 </configuration>
124 </execution>
125 <execution>
126 <id>generate-images</id>
127 <phase>generate-sources</phase>
128 <goals>
129 <goal>build</goal>
130 </goals>
131 </execution>
132 <execution>
133 <id>push-images</id>
134 <phase>deploy</phase>
135 <goals>
136 <goal>build</goal>
137 <goal>push</goal>
138 </goals>
Rashmi Pujar7937bce2019-06-03 21:45:58 -0400139 </execution>
140 </executions>
141 </plugin>
142 <plugin>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-deploy-plugin</artifactId>
145 <configuration>
liamfallon7ddbdd82021-04-19 14:15:10 +0100146 <skip>${docker.skip.deployconfig}</skip>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400147 </configuration>
148 </plugin>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400149 </plugins>
150 </build>
Rashmi Pujar7937bce2019-06-03 21:45:58 -0400151 <dependencies>
152 <dependency>
153 <groupId>${project.groupId}</groupId>
154 <artifactId>install-drools</artifactId>
155 <version>${project.version}</version>
156 <type>zip</type>
157 </dependency>
158 </dependencies>
mmis824a75e2018-03-02 18:04:48 +0000159</project>