blob: 145a657fafd58f61b4aaf85b376e0ab4140f8b38 [file] [log] [blame]
Avi Zivc175a0d2018-03-15 13:21:44 +02001<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
vasraz8b1002a2021-12-08 22:12:52 +00002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Avi Zivc175a0d2018-03-15 13:21:44 +02003 <modelVersion>4.0.0</modelVersion>
4
5 <name>openecomp-sdc-docker-backend</name>
6 <groupId>org.openecomp.sdc</groupId>
7 <artifactId>openecomp-sdc-docker-backend</artifactId>
8 <packaging>pom</packaging>
9
10 <url>http://maven.apache.org</url>
11
12 <parent>
13 <groupId>org.openecomp.sdc</groupId>
14 <artifactId>openecomp-sdc-docker-dist</artifactId>
MichaelMorris38812c32023-06-02 10:04:31 +010015 <version>1.13.0-SNAPSHOT</version>
Avi Zivc175a0d2018-03-15 13:21:44 +020016 </parent>
17
18
19 <properties>
20 <docker.image.name>sdc-onboard-backend</docker.image.name>
21 </properties>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020022
vasraz8b1002a2021-12-08 22:12:52 +000023 <profiles>
24 <profile>
25 <id>docker</id>
26 <activation>
27 <activeByDefault>false</activeByDefault>
28 </activation>
29 <build>
30 <plugins>
31 <plugin>
32 <groupId>org.apache.maven.plugins</groupId>
33 <artifactId>maven-clean-plugin</artifactId>
34 <executions>
35 <execution>
36 <id>clean files</id>
37 <phase>clean</phase>
38 <goals>
39 <goal>clean</goal>
40 </goals>
41 <configuration>
42 <filesets>
43 <fileset>
44 <directory>${project.basedir}/artifacts/</directory>
45 <followSymlinks>false</followSymlinks>
46 <includes>
47 <include>*.war</include>
48 <include>onboarding_configuration.yaml</include>
49 <include>logback.xml</include>
50 </includes>
51 </fileset>
52 </filesets>
53 </configuration>
54 </execution>
55 </executions>
56 </plugin>
57
58 <plugin>
59 <artifactId>maven-resources-plugin</artifactId>
60 <version>3.0.2</version>
61 <executions>
62 <execution>
63 <id>copy-resources-war</id>
64 <phase>verify</phase>
65 <goals>
66 <goal>copy-resources</goal>
67 </goals>
68 <configuration>
69 <outputDirectory>${project.basedir}/artifacts</outputDirectory>
70 <resources>
71 <resource>
72 <directory>
73 ${project.parent.basedir}/../../openecomp-be/tools/swagger-ui/target/api-docs
74 </directory>
75 <includes>
76 <include>api-docs.war</include>
77 </includes>
78 </resource>
79 <resource>
80 <directory>
81 ${project.parent.basedir}/../../openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
82 </directory>
83 <includes>
84 <include>onboarding-be-${project.version}.war</include>
85 </includes>
86 </resource>
87 <resource>
88 <directory>
89 ${project.parent.basedir}/../../openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/resources
90 </directory>
91 <includes>
92 <include>onboarding_configuration.yaml</include>
93 </includes>
94 </resource>
95 <resource>
96 <directory>
97 ${project.parent.basedir}/../../catalog-be/src/main/resources/config
98 </directory>
99 <includes>
100 <include>logback.xml</include>
101 </includes>
102 </resource>
103 </resources>
104 </configuration>
105 </execution>
106 </executions>
107 </plugin>
108
109 <plugin>
110 <groupId>io.fabric8</groupId>
111 <artifactId>docker-maven-plugin</artifactId>
Michael Lando5c9769c2018-08-20 01:27:45 +0300112 <configuration>
vasraz8b1002a2021-12-08 22:12:52 +0000113 <verbose>${verbose}</verbose>
114 <apiVersion>${docker.api.version}</apiVersion>
115 <registry>${docker.registry}</registry>
116 <authConfig>
117 <pull>
118 <username>${docker.username}</username>
119 <password>${docker.password}</password>
120 </pull>
121 </authConfig>
122 <images>
123
124 <!-- Build backend image -->
125 <image>
126 <name>${docker.namespace}/${docker.image.name}</name>
127 <alias>${docker.image.name}</alias>
128 <build>
129 <cleanup>try</cleanup>
130 <dockerFileDir>${project.basedir}/artifacts</dockerFileDir>
131 <tags>
132 <tag>latest</tag>
133 <tag>
134 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
135 </tag>
136 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
137 </tags>
138 </build>
139 </image>
140 </images>
Michael Lando5c9769c2018-08-20 01:27:45 +0300141 </configuration>
vasraz8b1002a2021-12-08 22:12:52 +0000142 <executions>
143 <execution>
144 <id>clean-images</id>
145 <phase>pre-clean</phase>
146 <goals>
147 <goal>remove</goal>
148 </goals>
149 <configuration>
150 <removeAll>true</removeAll>
151 <image>${docker.namespace}/${docker.image.name}</image>
152 </configuration>
153 </execution>
Michael Lando5c9769c2018-08-20 01:27:45 +0300154
vasraz8b1002a2021-12-08 22:12:52 +0000155 <execution>
156 <id>generate-images</id>
157 <phase>install</phase>
158 <goals>
159 <goal>build</goal>
160 </goals>
161 </execution>
Avi Zivc175a0d2018-03-15 13:21:44 +0200162
vasraz8b1002a2021-12-08 22:12:52 +0000163 <execution>
164 <id>push-images</id>
165 <phase>deploy</phase>
166 <goals>
167 <goal>push</goal>
168 </goals>
169 <configuration>
170 <image>${docker.namespace}/${docker.image.name}</image>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175 </plugins>
176 </build>
177 </profile>
178 </profiles>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +0200179</project>
180