Add docker configuration to push on docher hub
This commit is contained in:
parent
5d5d9a1612
commit
ef119f7c50
7 changed files with 347 additions and 10 deletions
|
|
@ -344,7 +344,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!--registry>192.168.1.184:12500</registry-->
|
<!--registry>192.168.1.184:12500</registry-->
|
||||||
|
|
@ -407,7 +407,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<registry>${registry.host}</registry>
|
<registry>${registry.host}</registry>
|
||||||
|
|
@ -463,5 +463,58 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>docker-hub</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.fabric8</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
|
<configuration>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>pymmasoftware/runtime-admin-console:${version.number}</name>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||||
|
|
||||||
|
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||||
|
<assembly>
|
||||||
|
<descriptorRef>artifact</descriptorRef>
|
||||||
|
</assembly>
|
||||||
|
<tags>
|
||||||
|
<tag>latest</tag>
|
||||||
|
</tags>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
<authConfig>
|
||||||
|
<username>pymmasoftwaredeploy</username>
|
||||||
|
<password>${dockerhub.password}</password>
|
||||||
|
</authConfig>
|
||||||
|
<retries>5</retries>
|
||||||
|
</configuration>
|
||||||
|
|
||||||
|
<executions>
|
||||||
|
|
||||||
|
|
||||||
|
<execution>
|
||||||
|
<id>mydeploy</id>
|
||||||
|
<phase>deploy</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>build</goal>
|
||||||
|
<goal>push</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
|
||||||
|
</executions>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -232,7 +232,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!--registry>192.168.1.184:12500</registry-->
|
<!--registry>192.168.1.184:12500</registry-->
|
||||||
|
|
@ -295,7 +295,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<registry>${registry.host}</registry>
|
<registry>${registry.host}</registry>
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!--registry>192.168.1.184:12500</registry-->
|
<!--registry>192.168.1.184:12500</registry-->
|
||||||
|
|
@ -339,7 +339,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<registry>${registry.host}</registry>
|
<registry>${registry.host}</registry>
|
||||||
|
|
@ -428,6 +428,100 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>docker-hub</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.fabric8</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
|
<configuration>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>pymmasoftware/kie-wb:${version.number}</name>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||||
|
|
||||||
|
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||||
|
<assembly>
|
||||||
|
<mode>dir</mode>
|
||||||
|
<name>maven/</name>
|
||||||
|
<inline xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||||
|
<id>middleware-rest</id>
|
||||||
|
<files>
|
||||||
|
<file>
|
||||||
|
<source>${project.build.directory}/kie-wb.war</source>
|
||||||
|
<outputDirectory>./</outputDirectory>
|
||||||
|
<destName>kie-wb.war</destName>
|
||||||
|
</file>
|
||||||
|
<file>
|
||||||
|
<source>${project.build.directory}/pymma-kie-login-module.jar</source>
|
||||||
|
<outputDirectory>./</outputDirectory>
|
||||||
|
<destName>pymma-kie-login-module.jar</destName>
|
||||||
|
</file>
|
||||||
|
<file>
|
||||||
|
<source>${project.build.directory}/bson.jar</source>
|
||||||
|
<outputDirectory>./</outputDirectory>
|
||||||
|
<destName>bson.jar</destName>
|
||||||
|
</file>
|
||||||
|
<file>
|
||||||
|
<source>${project.build.directory}/mongodb-driver-core.jar</source>
|
||||||
|
<outputDirectory>./</outputDirectory>
|
||||||
|
<destName>mongodb-driver-core.jar</destName>
|
||||||
|
</file>
|
||||||
|
<file>
|
||||||
|
<source>${project.build.directory}/mongodb-driver.jar</source>
|
||||||
|
<outputDirectory>./</outputDirectory>
|
||||||
|
<destName>mongodb-driver.jar</destName>
|
||||||
|
</file>
|
||||||
|
</files>
|
||||||
|
</inline>
|
||||||
|
</assembly>
|
||||||
|
|
||||||
|
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<run>
|
||||||
|
<extraHosts>
|
||||||
|
<host>mongodb:192.168.1.102</host>
|
||||||
|
<host>declasin:192.168.1.184</host>
|
||||||
|
</extraHosts>
|
||||||
|
<ports>
|
||||||
|
<port>8080:8080</port>
|
||||||
|
</ports>
|
||||||
|
</run>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
<authConfig>
|
||||||
|
<username>${dockerhub.username}</username>
|
||||||
|
<password>${dockerhub.password}</password>
|
||||||
|
</authConfig>
|
||||||
|
<retries>5</retries>
|
||||||
|
</configuration>
|
||||||
|
|
||||||
|
<executions>
|
||||||
|
|
||||||
|
|
||||||
|
<execution>
|
||||||
|
<id>mydeploy</id>
|
||||||
|
<phase>deploy</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>build</goal>
|
||||||
|
<goal>push</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
|
||||||
|
</executions>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!--registry>192.168.1.184:12500</registry-->
|
<!--registry>192.168.1.184:12500</registry-->
|
||||||
|
|
@ -209,5 +209,62 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>docker-hub</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.fabric8</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
|
<configuration>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>pymmasoftware/runtime-indexer:${version.number}</name>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||||
|
|
||||||
|
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||||
|
<assembly>
|
||||||
|
<descriptorRef>artifact</descriptorRef>
|
||||||
|
</assembly>
|
||||||
|
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<run>
|
||||||
|
<extraHosts>
|
||||||
|
<host>mongodb:192.168.1.100</host>
|
||||||
|
</extraHosts>
|
||||||
|
|
||||||
|
</run>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
<authConfig>
|
||||||
|
<username>pymmasoftwaredeploy</username>
|
||||||
|
<password>${dockerhub.password}</password>
|
||||||
|
</authConfig>
|
||||||
|
<retries>5</retries>
|
||||||
|
</configuration>
|
||||||
|
|
||||||
|
<executions>
|
||||||
|
|
||||||
|
|
||||||
|
<execution>
|
||||||
|
<id>mydeploy</id>
|
||||||
|
<phase>deploy</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>build</goal>
|
||||||
|
<goal>push</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
|
||||||
|
</executions>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -228,7 +228,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!--registry>192.168.1.184:12500</registry-->
|
<!--registry>192.168.1.184:12500</registry-->
|
||||||
|
|
@ -291,7 +291,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.21.0</version>
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<registry>${registry.host}</registry>
|
<registry>${registry.host}</registry>
|
||||||
|
|
@ -346,5 +346,66 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>docker-hub</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.fabric8</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
<version>${fabri8.plugin.version}</version>
|
||||||
|
|
||||||
|
<configuration>
|
||||||
|
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>pymmasoftware/runtime-proxy:${version.number}</name>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||||
|
|
||||||
|
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||||
|
<assembly>
|
||||||
|
<descriptorRef>artifact</descriptorRef>
|
||||||
|
</assembly>
|
||||||
|
<tags>
|
||||||
|
<tag>latest</tag>
|
||||||
|
</tags>
|
||||||
|
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<run>
|
||||||
|
<extraHosts>
|
||||||
|
<host>mongodb:192.168.1.100</host>
|
||||||
|
</extraHosts>
|
||||||
|
<ports>
|
||||||
|
<port>8080:8080</port>
|
||||||
|
</ports>
|
||||||
|
</run>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
<authConfig>
|
||||||
|
<username>pymmasoftwaredeploy</username>
|
||||||
|
<password>${dockerhub.password}</password>
|
||||||
|
</authConfig>
|
||||||
|
<retries>5</retries>
|
||||||
|
</configuration>
|
||||||
|
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>mydeploy</id>
|
||||||
|
<phase>deploy</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>build</goal>
|
||||||
|
<goal>push</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
|
||||||
|
</executions>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
|
|
@ -241,5 +241,65 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>docker-hub</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.fabric8</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
<version>0.21.0</version>
|
||||||
|
<configuration>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>pymmasoftware/runtime-reverse-proxy:${version.number}</name>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||||
|
|
||||||
|
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||||
|
<assembly>
|
||||||
|
<descriptorRef>artifact</descriptorRef>
|
||||||
|
</assembly>
|
||||||
|
<tags>
|
||||||
|
<tag>latest</tag>
|
||||||
|
</tags>
|
||||||
|
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<run>
|
||||||
|
<extraHosts>
|
||||||
|
<host>mongodb:192.168.1.100</host>
|
||||||
|
</extraHosts>
|
||||||
|
|
||||||
|
</run>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
<authConfig>
|
||||||
|
<username>pymmasoftwaredeploy</username>
|
||||||
|
<password>${dockerhub.password}</password>
|
||||||
|
</authConfig>
|
||||||
|
<retries>5</retries>
|
||||||
|
</configuration>
|
||||||
|
|
||||||
|
<executions>
|
||||||
|
|
||||||
|
|
||||||
|
<execution>
|
||||||
|
<id>mydeploy</id>
|
||||||
|
<phase>deploy</phase>
|
||||||
|
<goals>
|
||||||
|
|
||||||
|
<goal>build</goal>
|
||||||
|
<goal>push</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
|
||||||
|
</executions>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
14
pom.xml
14
pom.xml
|
|
@ -17,7 +17,8 @@
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jbpm.version>7.43.1.Final</jbpm.version>
|
<fabri8.plugin.version>0.34.1</fabri8.plugin.version>
|
||||||
|
<jbpm.version>7.44.0.Final</jbpm.version>
|
||||||
<node.version>v10.16.3</node.version>
|
<node.version>v10.16.3</node.version>
|
||||||
<npm.version>6.11.3</npm.version>
|
<npm.version>6.11.3</npm.version>
|
||||||
<frontend-maven-plugin.version>1.8.0</frontend-maven-plugin.version>
|
<frontend-maven-plugin.version>1.8.0</frontend-maven-plugin.version>
|
||||||
|
|
@ -77,6 +78,17 @@
|
||||||
<docker.Host>http://192.168.1.184:2376</docker.Host>
|
<docker.Host>http://192.168.1.184:2376</docker.Host>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>docker-hub</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>false</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<env>docker</env>
|
||||||
|
<docker.Host>register.hub.docker.com/pymmasoftware</docker.Host>
|
||||||
|
<nexus.host>https://nexus.pymma-software.net</nexus.host>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>pymma-internal</id>
|
<id>pymma-internal</id>
|
||||||
<activation>
|
<activation>
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue