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