blob: 5de979f96ee46da14067ca12b43559729e4cfd90 [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"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <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>
15 <version>1.2.0-SNAPSHOT</version>
16 <relativePath>..</relativePath>
17 </parent>
18
19
20 <properties>
21 <docker.image.name>sdc-onboard-backend</docker.image.name>
22 </properties>
23 <build>
24 <plugins>
25 <plugin>
26 <artifactId>maven-resources-plugin</artifactId>
27 <version>3.0.2</version>
28 <executions>
29 <execution>
30 <id>copy-resources-war</id>
31 <phase>verify</phase>
32 <goals>
33 <goal>copy-resources</goal>
34 </goals>
35 <configuration>
36 <outputDirectory>${project.basedir}/artifacts</outputDirectory>
37 <resources>
38 <resource>
39 <directory>
Areli, Fuss (af732p)c033cdc2018-04-24 13:59:00 +030040 ${project.parent.basedir}/../../openecomp-be/tools/swagger-ui/target/api-docs
Avi Zivc175a0d2018-03-15 13:21:44 +020041 </directory>
42 <includes>
43 <include>api-docs.war</include>
44 </includes>
45 </resource>
46 <resource>
47 <directory>
48 ${project.parent.basedir}/../../openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
49 </directory>
50 <includes>
51 <include>onboarding-be-${project.version}.war</include>
52 </includes>
53 </resource>
54 <resource>
55 <directory>
56 ${project.parent.basedir}/../../openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/resources
57 </directory>
58 <includes>
59 <include>onboarding_configuration.yaml</include>
60 </includes>
61 </resource>
62 <resource>
63 <directory>
64 ${project.parent.basedir}/../../catalog-be/src/main/resources/config
65 </directory>
66 <includes>
67 <include>logback.xml</include>
68 </includes>
69 </resource>
70 </resources>
71 </configuration>
72 </execution>
73 </executions>
74 </plugin>
75 <plugin>
76 <groupId>io.fabric8</groupId>
77 <artifactId>docker-maven-plugin</artifactId>
78 <version>${fabric8.version}</version>
79
80 <configuration>
81 <verbose>true</verbose>
82 <apiVersion>1.23</apiVersion>
83 <registry>nexus3.onap.org:10001</registry>
84 <authConfig>
85 <pull>
86 <username>docker</username>
87 <password>docker</password>
88 </pull>
89 </authConfig>
90 <images>
91
92 <!-- Build backend image -->
93 <image>
94 <name>onap/${docker.image.name}</name>
95 <alias>${docker.image.name}</alias>
96 <build>
97 <cleanup>try</cleanup>
98 <dockerFileDir>${project.basedir}/artifacts</dockerFileDir>
99 <tags>
100 <tag>${docker.tag}</tag>
101 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
102 </tags>
103 </build>
104 </image>
105 </images>
106 </configuration>
107 <executions>
108 <execution>
109 <id>clean-images</id>
110 <phase>pre-clean</phase>
111 <goals>
112 <goal>remove</goal>
113 </goals>
114 <configuration>
115 <removeAll>true</removeAll>
116 <image>onap/${docker.image.name}</image>
117 </configuration>
118 </execution>
119
120 <execution>
121 <id>generate-images</id>
122 <phase>install</phase>
123 <goals>
124 <goal>build</goal>
125 </goals>
126 </execution>
127
128 <execution>
129 <id>push-images</id>
130 <phase>deploy</phase>
131 <goals>
132 <goal>push</goal>
133 </goals>
134 <configuration>
135 <image>onap/${docker.image.name}</image>
136 </configuration>
137 </execution>
138 </executions>
139 </plugin>
140 </plugins>
141 </build>
142</project>