[MOD/Runtime] Upgrade to Helmgen-core 1.0.4
[dcaegen2/platform.git] / mod / runtimeapi / runtime-web / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ============LICENSE_START=======================================================
4 Copyright (c) 2019-2022 AT&T Intellectual Property. All rights reserved.
5 Copyright (c) 2020 Nokia
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23     <parent>
24         <groupId>org.onap.dcaegen2.platform.mod</groupId>
25         <artifactId>runtimeapi</artifactId>
26         <version>1.3.3</version>
27     </parent>
28     <artifactId>runtime-web</artifactId>
29     <version>1.3.3-SNAPSHOT</version>
30     <packaging>jar</packaging>
31     <properties><onap-gerrit-review>-changelog-missing</onap-gerrit-review></properties>
32     <name>runtime-web</name>
33     <description>MOD Runtime Web Module</description>
34     <dependencies>
35         <dependency>
36             <groupId>org.onap.dcaegen2.platform.mod</groupId>
37             <artifactId>runtime-core</artifactId>
38             <version>1.3.3</version>
39         </dependency>
40         <dependency>
41             <groupId>org.springframework.boot</groupId>
42             <artifactId>spring-boot-starter-actuator</artifactId>
43         </dependency>
44         <dependency>
45             <groupId>org.springframework.boot</groupId>
46             <artifactId>spring-boot-starter-web</artifactId>
47         </dependency>
48
49         <dependency>
50             <groupId>org.springframework.boot</groupId>
51             <artifactId>spring-boot-devtools</artifactId>
52             <scope>runtime</scope>
53             <optional>true</optional>
54         </dependency>
55         <dependency>
56             <groupId>org.springframework.boot</groupId>
57             <artifactId>spring-boot-starter-test</artifactId>
58             <scope>test</scope>
59         </dependency>
60         <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
61         <dependency>
62             <groupId>com.google.guava</groupId>
63             <artifactId>guava</artifactId>
64             <version>28.0-jre</version>
65         </dependency>
66         <dependency>
67             <groupId>io.springfox</groupId>
68             <artifactId>springfox-boot-starter</artifactId>
69             <version>3.0.0</version>
70         </dependency>
71         <dependency>
72             <groupId>io.springfox</groupId>
73             <artifactId>springfox-swagger-ui</artifactId>
74             <version>3.0.0</version>
75         </dependency>
76         <dependency>
77             <groupId>org.apache.httpcomponents</groupId>
78             <artifactId>httpclient</artifactId>
79             <version>4.5.8</version>
80             <scope>test</scope>
81         </dependency>
82     </dependencies>
83
84     <build>
85         <plugins>
86             <plugin>
87                 <groupId>org.springframework.boot</groupId>
88                 <artifactId>spring-boot-maven-plugin</artifactId>
89                 <version>2.6.2</version>
90                 <executions>
91                     <execution>
92                         <goals>
93                             <goal>repackage</goal>
94                         </goals>
95                     </execution>
96                 </executions>
97             </plugin>
98             <plugin>
99                 <groupId>io.fabric8</groupId>
100                 <artifactId>docker-maven-plugin</artifactId>
101                 <configuration>
102                     <verbose>true</verbose>
103                     <pullRegistry>${docker.pull.registry}</pullRegistry>
104                     <pushRegistry>${docker.push.registry}</pushRegistry>
105                     <images>
106                         <image>
107                             <name>onap/${project.groupId}.${project.artifactId}</name>
108                             <registry>${onap.nexus.dockerregistry.daily}</registry>
109                             <build>
110                                 <from>openjdk:11-jre-slim</from>
111                                 <tags>
112                                     <tag>latest</tag>
113                                     <tag>${project.version}</tag>
114                                     <tag>${project.version}-${maven.build.timestamp}Z</tag>
115                                 </tags>
116                                 <assembly>
117                                     <descriptorRef>artifact</descriptorRef>
118                                 </assembly>
119                                 <runCmds>
120                                     <runCmd>apt-get update &amp;&amp; apt-get install -y wget</runCmd>
121                                     <runCmd>wget https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz &amp;&amp; tar xvf helm-v3.5.4-linux-amd64.tar.gz &amp;&amp; mv linux-amd64/helm /usr/local/bin/</runCmd>
122                                     <runCmd>groupadd -r dcaemod &amp;&amp; useradd -ms /bin/bash dcaemod -g dcaemod &amp;&amp; mkdir -p /maven/data &amp;&amp; chown -R dcaemod:dcaemod /maven/data</runCmd>
123                                 </runCmds>
124                                 <workdir>/maven</workdir>
125                                 <volumes>
126                                     <volume>/tmp</volume>
127                                 </volumes>
128                                 <ports>
129                                     <port>9090</port>
130                                 </ports>
131                                 <user>dcaemod</user>
132                                 <entryPoint>
133                                     <exec>
134                                         <arg>java</arg>
135                                         <arg>-Djava.security.egd=file:/dev/./urandom</arg>
136                                         <arg>-jar</arg>
137                                         <arg>${project.artifactId}-${project.version}.${project.packaging}</arg>
138                                     </exec>
139                                 </entryPoint>
140                             </build>
141                         </image>
142                     </images>
143                 </configuration>
144                 <executions>
145                     <execution>
146                         <goals>
147                             <goal>build</goal>
148                             <goal>push</goal>
149                         </goals>
150                     </execution>
151                 </executions>
152             </plugin>
153         </plugins>
154     </build>
155
156 </project>