blob: 072e884ecad0238a3dca278e6f8edb4255b67fca [file] [log] [blame]
Timoney, Dan (dt5972)428403f2019-06-12 14:45:15 +02001<?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-odl-neon</artifactId>
Dan Timoney02350212020-01-30 14:00:55 -05008 <version>0.7.1-SNAPSHOT</version>
Timoney, Dan (dt5972)428403f2019-06-12 14:45:15 +02009 </parent>
10
Timoney, Dan (dt5972)707c6a12019-09-24 16:04:42 -040011 <artifactId>distribution-odl-neon-docker</artifactId>
Dan Timoney02350212020-01-30 14:00:55 -050012 <version>0.7.1-SNAPSHOT</version>
Timoney, Dan (dt5972)428403f2019-06-12 14:45:15 +020013 <packaging>pom</packaging>
14
Timoney, Dan (dt5972)707c6a12019-09-24 16:04:42 -040015 <name>ccsdk-distribution :: opendaylight :: neon :: docker</name>
Timoney, Dan (dt5972)428403f2019-06-12 14:45:15 +020016 <description>Creates OpenDaylight container</description>
17 <organization>
18 <name>ONAP</name>
19 </organization>
20
21 <properties>
22 <image.name>onap/ccsdk-odl-neon-alpine-image</image.name>
Timoney, Dan (dt5972)4ec03262019-12-12 10:35:10 -050023 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
Timoney, Dan (dt5972)428403f2019-06-12 14:45:15 +020024 </properties>
25 <build>
26 <plugins>
27
28
29 <plugin>
30 <groupId>org.codehaus.groovy.maven</groupId>
31 <artifactId>gmaven-plugin</artifactId>
32 <executions>
33 <execution>
34 <phase>validate</phase>
35 <goals>
36 <goal>execute</goal>
37 </goals>
38 <configuration>
39 <source>${basedir}/../../../src/main/scripts/TagVersion.groovy</source>
40 </configuration>
41 </execution>
42 </executions>
43 </plugin>
44
45
46
47 <plugin>
48 <groupId>org.apache.maven.plugins</groupId>
49 <artifactId>maven-dependency-plugin</artifactId>
50 <version>3.0.0</version>
51 <executions>
52 <execution>
53 <id>get-odl-distribution</id>
54 <phase>validate</phase>
55 <goals>
56 <goal>copy</goal>
57 </goals>
58 <configuration>
59 <artifactItems>
60 <artifactItem>
Timoney, Dan (dt5972)29516522019-10-01 13:47:32 -040061 <groupId>org.opendaylight.integration</groupId>
Timoney, Dan (dt5972)4ec03262019-12-12 10:35:10 -050062 <artifactId>${odl.karaf.artifactId}</artifactId>
Timoney, Dan (dt5972)29516522019-10-01 13:47:32 -040063 <version>${ccsdk.opendaylight.version}</version>
Timoney, Dan (dt5972)428403f2019-06-12 14:45:15 +020064 <type>tar.gz</type>
65
66 <overWrite>true</overWrite>
67 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
68 </artifactItem>
69 </artifactItems>
70 <overWriteReleases>false</overWriteReleases>
71 <overWriteSnapshots>true</overWriteSnapshots>
72 <overWriteIfNewer>true</overWriteIfNewer>
73 </configuration>
74 </execution>
Timoney, Dan (dt5972)428403f2019-06-12 14:45:15 +020075 </executions>
76 </plugin>
77
78 <plugin>
79 <artifactId>maven-resources-plugin</artifactId>
80 <version>2.6</version>
81 <executions>
82 <execution>
83 <id>copy-dockerfile</id>
84 <goals>
85 <goal>copy-resources</goal>
86 </goals><!-- here the phase you need -->
87 <phase>validate</phase>
88 <configuration>
89 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
90 <resources>
91 <resource>
92 <directory>src/main/docker</directory>
93 <includes>
94 <include>Dockerfile</include>
95 </includes>
96 <filtering>true</filtering>
97 </resource>
98 </resources>
99 </configuration>
100 </execution>
101 </executions>
102 </plugin>
103
104
105
106 </plugins>
107 </build>
108
109 <profiles>
110 <profile>
111 <id>docker</id>
112 <build>
113 <plugins>
114 <plugin>
115 <groupId>io.fabric8</groupId>
116 <artifactId>docker-maven-plugin</artifactId>
117 <version>0.28.0</version>
118 <inherited>false</inherited>
119 <configuration>
120 <images>
121 <image>
122 <name>${image.name}</name>
123 <build>
124 <cleanup>try</cleanup>
125 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
126 <dockerFile>Dockerfile</dockerFile>
127 <tags>
128 <tag>${project.docker.latestminortag.version}</tag>
129 <tag>${project.docker.latestfulltag.version}</tag>
130 <tag>${project.docker.latesttagtimestamp.version}</tag>
131 </tags>
132 </build>
133 </image>
134 </images>
135 </configuration>
136 <executions>
137 <execution>
138 <id>generate-images</id>
139 <phase>package</phase>
140 <goals>
141 <goal>build</goal>
142 </goals>
143 </execution>
144
145 <execution>
146 <id>push-images</id>
147 <phase>${docker.push.phase}</phase>
148 <goals>
149 <goal>build</goal>
150 <goal>push</goal>
151 </goals>
152 </execution>
153 </executions>
154 </plugin>
155
156 </plugins>
157 </build>
158 </profile>
159
160 </profiles>
161</project>