Make images arm-64 compatible
[ccsdk/distribution.git] / ubuntu / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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     <parent>
6         <groupId>org.onap.ccsdk.distribution</groupId>
7         <artifactId>distribution-root</artifactId>
8         <version>0.4.2-SNAPSHOT</version>
9     </parent>
10
11     <artifactId>distribution-ubuntu</artifactId>
12     <version>0.4.2-SNAPSHOT</version>
13     <packaging>pom</packaging>
14
15     <name>ccsdk-distribution :: ubuntu</name>
16     <description>Creates base ubuntu Docker container</description>
17     <organization>
18         <name>openECOMP</name>
19     </organization>
20
21     <properties>
22         <image.name>onap/ccsdk-ubuntu-image</image.name>
23         <ccsdk.project.version>${project.version}</ccsdk.project.version>
24         <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
25             <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version>
26     </properties>
27
28     <build>
29         <plugins>
30
31             <plugin>
32                 <groupId>org.codehaus.groovy.maven</groupId>
33                 <artifactId>gmaven-plugin</artifactId>
34                 <executions>
35                     <execution>
36                         <phase>validate</phase>
37                         <goals>
38                             <goal>execute</goal>
39                         </goals>
40                         <configuration>
41                             <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
42                         </configuration>
43                     </execution>
44                 </executions>
45             </plugin>
46
47             <plugin>
48                 <artifactId>maven-resources-plugin</artifactId>
49                 <version>2.6</version>
50                 <executions>
51                     <execution>
52                         <id>copy-dockerfile</id>
53                         <goals>
54                             <goal>copy-resources</goal>
55                         </goals><!-- here the phase you need -->
56                         <phase>validate</phase>
57                         <configuration>
58                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
59                             <resources>
60                                 <resource>
61                                     <directory>src/main/docker</directory>
62                                     <includes>
63                                         <include>Dockerfile</include>
64                                     </includes>
65                                     <filtering>true</filtering>
66                                 </resource>
67                             </resources>
68                         </configuration>
69                     </execution>
70                 </executions>
71             </plugin>
72         </plugins>
73     </build>
74
75     <profiles>
76         <profile>
77             <id>docker</id>
78             <build>
79                 <plugins>
80                     <plugin>
81                         <groupId>io.fabric8</groupId>
82                         <artifactId>docker-maven-plugin</artifactId>
83                         <version>0.28.0</version>
84                         <inherited>false</inherited>
85                         <configuration>
86
87                             <images>
88                                 <image>
89                                     <name>${image.name}</name>
90                                     <build>
91                                         <cleanup>try</cleanup>
92                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
93                                         <dockerFile>Dockerfile</dockerFile>
94                                         <tags>
95                                             <tag>${project.docker.latestminortag.version}</tag>
96                                             <tag>${project.docker.latestfulltag.version}</tag>
97                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
98                                         </tags>
99                                     </build>
100                                 </image>
101                             </images>
102                         </configuration>
103                         <executions>
104                             <execution>
105                                 <id>generate-images</id>
106                                 <phase>generate-sources</phase>
107                                 <goals>
108                                     <goal>build</goal>
109                                 </goals>
110                             </execution>
111
112                             <execution>
113                                 <id>push-images</id>
114                                 <phase>deploy</phase>
115                                 <goals>
116                                     <goal>build</goal>
117                                     <goal>push</goal>
118                                 </goals>
119                             </execution>
120                         </executions>
121                     </plugin>
122
123                 </plugins>
124             </build>
125         </profile>
126     </profiles>
127 </project>

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use