summaryrefslogtreecommitdiffstats
path: root/sleepingcelldetector/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sleepingcelldetector/pom.xml')
-rw-r--r--sleepingcelldetector/pom.xml58
1 files changed, 54 insertions, 4 deletions
diff --git a/sleepingcelldetector/pom.xml b/sleepingcelldetector/pom.xml
index 80b790d..0b067f8 100644
--- a/sleepingcelldetector/pom.xml
+++ b/sleepingcelldetector/pom.xml
@@ -26,10 +26,6 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
- <properties>
- <docker-image.name.prefix>org.onap.rapp.sleepingcelldetector</docker-image.name.prefix>
- </properties>
-
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -52,4 +48,58 @@
<version>28.2-android</version>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <target>
+ <copy file="target/${project.artifactId}-${project.version}.jar" tofile="./docker/${project.artifactId}-${project.version}.jar"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>${docker-maven-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>docker-build-image</id>
+ <phase>install</phase>
+ <goals>
+ <goal>build</goal>
+ <goal>push</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <skipPush>${skipDockerPush}</skipPush>
+ <verbose>true</verbose>
+ <imagePullPolicy>IfNotPresent</imagePullPolicy>
+ <images>
+ <image>
+ <name>${docker-image.namespace}/${docker-image.name.prefix}/${project.artifactId}</name>
+ <registry>${docker.registry}</registry>
+ <build>
+ <dockerFileDir>${project.basedir}/docker</dockerFileDir>
+ <tags>
+ <tag>${project.version}-${maven.build.timestamp}Z</tag>
+ </tags>
+ </build>
+ </image>
+ </images>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>