blob: 6302e5c514cf9f197a3cbfe7766fb82eb60ba919 [file] [log] [blame]
Areli Fuss547839b2017-08-22 15:34:37 +03001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3 <modelVersion>4.0.0</modelVersion>
Areli Fussf11fcc72017-09-07 10:33:10 +03004
Areli Fussc0444322017-09-10 11:41:33 +03005 <groupId>org.openecomp.sdc.sdc-docker-base</groupId>
6 <artifactId>sdc-docker-base</artifactId>
7 <packaging>pom</packaging>
Areli Fussf11fcc72017-09-07 10:33:10 +03008 <version>1.0.0-SNAPSHOT</version>
Jessica Wagantall9a181112017-09-08 12:36:20 -07009 <name>sdc-sdc-docker-base</name>
Areli Fuss547839b2017-08-22 15:34:37 +030010
Areli Fuss61385df2017-09-06 16:23:25 +030011 <properties>
12 <!--nexus-->
Areli Fussf11fcc72017-09-07 10:33:10 +030013 <sitePath>/content/sites/site/org/openecomp/sdc/${project.artifactId}/${project.version}</sitePath>
Areli Fuss61385df2017-09-06 16:23:25 +030014 <!--maven-->
Areli Fuss547839b2017-08-22 15:34:37 +030015 <timestamp>${maven.build.timestamp}</timestamp>
16 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
Areli Fuss61385df2017-09-06 16:23:25 +030017 <!--docker-->
Areli Fuss547839b2017-08-22 15:34:37 +030018 <docker.tag>${project.version}-${timestamp}</docker.tag>
19 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
Areli Fuss61385df2017-09-06 16:23:25 +030020 </properties>
Areli Fussf11fcc72017-09-07 10:33:10 +030021
Areli Fuss547839b2017-08-22 15:34:37 +030022 <build>
23 <plugins>
24 <plugin>
Areli Fussf11fcc72017-09-07 10:33:10 +030025 <groupId>org.sonatype.plugins</groupId>
26 <artifactId>nexus-staging-maven-plugin</artifactId>
27 <version>1.6.7</version>
28 <extensions>true</extensions>
29 <configuration>
Michael Landoca6aabe2017-11-05 19:59:37 +020030 <nexusUrl>https://nexus.onap.org</nexusUrl>
Areli Fussf11fcc72017-09-07 10:33:10 +030031 <stagingProfileId>176c31dfe190a</stagingProfileId>
32 <serverId>ecomp-staging</serverId>
33 </configuration>
34 </plugin>
35 <plugin>
Areli Fuss547839b2017-08-22 15:34:37 +030036 <groupId>io.fabric8</groupId>
37 <artifactId>docker-maven-plugin</artifactId>
38 <version>0.15.1</version>
39 <configuration>
40 <images>
Areli Fuss0a3899f2017-11-19 13:28:08 +020041 <!-- base_sdc-jetty for backend and frontend -->
Areli Fuss547839b2017-08-22 15:34:37 +030042 <image>
Areli Fuss0a3899f2017-11-19 13:28:08 +020043 <name>openecomp/base_sdc-jetty</name>
44 <alias>base_sdc-jetty</alias>
Areli Fuss547839b2017-08-22 15:34:37 +030045 <build>
46 <cleanup>true</cleanup>
47 <tags>
48 <tag>${docker.tag}</tag>
49 <tag>${docker.latest.tag}</tag>
50 </tags>
Areli Fuss0a3899f2017-11-19 13:28:08 +020051 <dockerFileDir>${project.basedir}/base_sdc-jetty</dockerFileDir>
Areli Fuss547839b2017-08-22 15:34:37 +030052 </build>
53 </image>
Areli Fuss0a3899f2017-11-19 13:28:08 +020054 <!-- base_sdc-kibana -->
Areli Fuss547839b2017-08-22 15:34:37 +030055 <image>
56 <name>openecomp/base_sdc-kibana</name>
57 <alias>base_sdc-kibana</alias>
58 <build>
59 <cleanup>true</cleanup>
60 <tags>
61 <tag>${docker.tag}</tag>
62 <tag>${docker.latest.tag}</tag>
63 </tags>
64 <dockerFileDir>${project.basedir}/base_sdc-kibana</dockerFileDir>
65 </build>
66 </image>
67 <!-- base_sdc-cassandra -->
68 <image>
69 <name>openecomp/base_sdc-cassandra</name>
70 <alias>base_sdc-cassandra</alias>
71 <build>
72 <cleanup>true</cleanup>
73 <tags>
74 <tag>${docker.tag}</tag>
75 <tag>${docker.latest.tag}</tag>
76 </tags>
77 <dockerFileDir>${project.basedir}/base_sdc-cassandra</dockerFileDir>
78 </build>
79 </image>
80 <!-- base_sdc-elasticsearch -->
81 <image>
82 <name>openecomp/base_sdc-elasticsearch</name>
83 <alias>base_sdc-elasticsearch</alias>
84 <build>
85 <cleanup>true</cleanup>
86 <tags>
87 <tag>${docker.tag}</tag>
88 <tag>${docker.latest.tag}</tag>
89 </tags>
90 <dockerFileDir>${project.basedir}/base_sdc-elasticsearch</dockerFileDir>
91 </build>
92 </image>
93 <!-- base_sdc-sanity -->
94 <image>
95 <name>openecomp/base_sdc-sanity</name>
96 <alias>base_sdc-sanity</alias>
97 <build>
98 <cleanup>true</cleanup>
99 <tags>
100 <tag>${docker.tag}</tag>
101 <tag>${docker.latest.tag}</tag>
102 </tags>
103 <dockerFileDir>${project.basedir}/base_sdc-sanity</dockerFileDir>
104 </build>
105 </image>
106 </images>
107 </configuration>
108 <executions>
109 <execution>
110 <id>clean-images</id>
111 <phase>pre-clean</phase>
112 <goals>
113 <goal>remove</goal>
114 </goals>
115 <configuration>
116 <removeAll>true</removeAll>
Areli Fuss0a3899f2017-11-19 13:28:08 +0200117 <image>openecomp/base_sdc-jetty,openecomp/base_sdc-frontend,openecomp/base_sdc-elasticsearch,openecomp/base_sdc-kibana,openecomp/base_sdc-cassandra,openecomp/base_sdc-sanity</image>
Areli Fuss547839b2017-08-22 15:34:37 +0300118 </configuration>
119 </execution>
120
121 <execution>
122 <id>generate-images</id>
123 <phase>package</phase>
124 <goals>
125 <goal>build</goal>
126 </goals>
127 </execution>
128
129 <execution>
130 <id>push-images</id>
131 <phase>deploy</phase>
132 <goals>
Areli Fuss547839b2017-08-22 15:34:37 +0300133 <goal>push</goal>
134 </goals>
135 <configuration>
Areli Fuss0a3899f2017-11-19 13:28:08 +0200136 <image>openecomp/base_sdc-jetty,openecomp/base_sdc-frontend,openecomp/base_sdc-elasticsearch,openecomp/base_sdc-kibana,openecomp/base_sdc-cassandra,openecomp/base_sdc-sanity</image>
Areli Fuss547839b2017-08-22 15:34:37 +0300137 </configuration>
138 </execution>
139 </executions>
140 </plugin>
141 </plugins>
142 </build>
Areli Fussf11fcc72017-09-07 10:33:10 +0300143 <repositories>
144 <repository>
Michael Landoca6aabe2017-11-05 19:59:37 +0200145 <id>central</id>
146 <name>Maven 2 repository 2</name>
147 <url>http://repo2.maven.org/maven2/</url>
148 </repository>
149 <repository>
Areli Fussf11fcc72017-09-07 10:33:10 +0300150 <id>ecomp-releases</id>
151 <name>ECOMP Release Repository</name>
Michael Landoca6aabe2017-11-05 19:59:37 +0200152 <url>https://nexus.onap.org/content/repositories/releases/</url>
Areli Fussf11fcc72017-09-07 10:33:10 +0300153 </repository>
154 <repository>
155 <id>ecomp-snapshots</id>
156 <name>ECOMP Snapshot Repository</name>
Michael Landoca6aabe2017-11-05 19:59:37 +0200157 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
Areli Fussf11fcc72017-09-07 10:33:10 +0300158 </repository>
159 <repository>
160 <id>ecomp-staging</id>
161 <name>ECOMP Staging Repository</name>
Michael Landoca6aabe2017-11-05 19:59:37 +0200162 <url>https://nexus.onap.org/content/repositories/staging/</url>
Areli Fussf11fcc72017-09-07 10:33:10 +0300163 </repository>
164 </repositories>
Michael Landoca6aabe2017-11-05 19:59:37 +0200165 <pluginRepositories>
166 <pluginRepository>
167 <id>central</id>
168 <name>Maven 2 repository 2</name>
169 <url>http://repo2.maven.org/maven2/</url>
170 </pluginRepository>
171 <pluginRepository>
172 <id>ecomp-releases</id>
173 <name>ONAP Release Repository</name>
174 <url>
175 https://nexus.onap.org/content/repositories/releases/
176 </url>
177 </pluginRepository>
178 <pluginRepository>
179 <id>ecomp-snapshots</id>
180 <name>ONAP Snapshot Repository</name>
181 <url>
182 https://nexus.onap.org/content/repositories/snapshots/
183 </url>
184 <snapshots>
185 <enabled>true</enabled>
186 </snapshots>
187 <releases>
188 <enabled>false</enabled>
189 </releases>
190 </pluginRepository>
191 </pluginRepositories>
Michael Landobb953da2017-11-05 20:18:47 +0200192 <distributionManagement>
193
194 <repository>
195 <id>ecomp-releases</id>
196 <name>Release Repository</name>
197 <url>https://nexus.onap.org/content/repositories/releases/</url>
198 </repository>
199 <snapshotRepository>
200 <id>ecomp-snapshots</id>
201 <name>Snapshot Repository</name>
202 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
203 </snapshotRepository>
204 <site>
205 <id>ecomp-site</id>
206 <url>dav:https://nexus.onap.org/content/sites/site/org/openecomp/sdc/${project.version}</url>
207 </site>
208 </distributionManagement>
Areli Fuss547839b2017-08-22 15:34:37 +0300209</project>