mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Make all configuration execution specific.
This introduces some duplication for the start/stop db executions, but I can't see any way to avoid that. We don't want the other configuration being shared between executions. Ensure the db start/stop execution triggers for repo and not for share.
This commit is contained in:
234
pom.xml
234
pom.xml
@@ -260,16 +260,6 @@
|
|||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>${fabric8.docker.version}</version>
|
<version>${fabric8.docker.version}</version>
|
||||||
<configuration>
|
|
||||||
<images>
|
|
||||||
<image>
|
|
||||||
<name>${image.name}</name>
|
|
||||||
<build>
|
|
||||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
||||||
</build>
|
|
||||||
</image>
|
|
||||||
</images>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>build-image</id>
|
<id>build-image</id>
|
||||||
@@ -278,6 +268,16 @@
|
|||||||
<goals>
|
<goals>
|
||||||
<goal>build</goal>
|
<goal>build</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>${image.name}</name>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -296,17 +296,6 @@
|
|||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>${fabric8.docker.version}</version>
|
<version>${fabric8.docker.version}</version>
|
||||||
<configuration>
|
|
||||||
<images>
|
|
||||||
<image>
|
|
||||||
<name>${image.name}:${image.tag}</name>
|
|
||||||
<registry>${image.registry}</registry>
|
|
||||||
<build>
|
|
||||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
||||||
</build>
|
|
||||||
</image>
|
|
||||||
</images>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>build-push-image</id>
|
<id>build-push-image</id>
|
||||||
@@ -315,6 +304,17 @@
|
|||||||
<goal>build</goal>
|
<goal>build</goal>
|
||||||
<goal>push</goal>
|
<goal>push</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>${image.name}:${image.tag}</name>
|
||||||
|
<registry>${image.registry}</registry>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -334,23 +334,6 @@
|
|||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>${fabric8.docker.version}</version>
|
<version>${fabric8.docker.version}</version>
|
||||||
<configuration>
|
|
||||||
<images>
|
|
||||||
<image>
|
|
||||||
<name>${image.name}:${image.tag}</name>
|
|
||||||
<registry>${image.registry}</registry>
|
|
||||||
<build>
|
|
||||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
||||||
</build>
|
|
||||||
</image>
|
|
||||||
<image>
|
|
||||||
<name>${image.name}:${image.tag}</name>
|
|
||||||
<build>
|
|
||||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
||||||
</build>
|
|
||||||
</image>
|
|
||||||
</images>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>build-push-image</id>
|
<id>build-push-image</id>
|
||||||
@@ -359,6 +342,23 @@
|
|||||||
<goal>build</goal>
|
<goal>build</goal>
|
||||||
<goal>push</goal>
|
<goal>push</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>${image.name}:${image.tag}</name>
|
||||||
|
<registry>${image.registry}</registry>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
<image>
|
||||||
|
<name>${image.name}:${image.tag}</name>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -378,17 +378,6 @@
|
|||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>${fabric8.docker.version}</version>
|
<version>${fabric8.docker.version}</version>
|
||||||
<configuration>
|
|
||||||
<images>
|
|
||||||
<image>
|
|
||||||
<name>${image.name}:${project.version}</name>
|
|
||||||
<registry>${image.registry}</registry>
|
|
||||||
<build>
|
|
||||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
||||||
</build>
|
|
||||||
</image>
|
|
||||||
</images>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>build-push-image</id>
|
<id>build-push-image</id>
|
||||||
@@ -397,6 +386,17 @@
|
|||||||
<goal>build</goal>
|
<goal>build</goal>
|
||||||
<goal>push</goal>
|
<goal>push</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>${image.name}:${project.version}</name>
|
||||||
|
<registry>${image.registry}</registry>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -416,23 +416,6 @@
|
|||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>${fabric8.docker.version}</version>
|
<version>${fabric8.docker.version}</version>
|
||||||
<configuration>
|
|
||||||
<images>
|
|
||||||
<image>
|
|
||||||
<name>${image.name}:${project.version}</name>
|
|
||||||
<registry>${image.registry}</registry>
|
|
||||||
<build>
|
|
||||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
||||||
</build>
|
|
||||||
</image>
|
|
||||||
<image>
|
|
||||||
<name>${image.name}:${project.version}</name>
|
|
||||||
<build>
|
|
||||||
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
||||||
</build>
|
|
||||||
</image>
|
|
||||||
</images>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>build-push-image</id>
|
<id>build-push-image</id>
|
||||||
@@ -441,6 +424,23 @@
|
|||||||
<goal>build</goal>
|
<goal>build</goal>
|
||||||
<goal>push</goal>
|
<goal>push</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>${image.name}:${project.version}</name>
|
||||||
|
<registry>${image.registry}</registry>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
<image>
|
||||||
|
<name>${image.name}:${project.version}</name>
|
||||||
|
<build>
|
||||||
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -463,40 +463,6 @@
|
|||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>${fabric8.docker.version}</version>
|
<version>${fabric8.docker.version}</version>
|
||||||
<configuration>
|
|
||||||
<images>
|
|
||||||
<image>
|
|
||||||
<alias>test-database</alias>
|
|
||||||
<name>postgres:${postgres.version}</name>
|
|
||||||
<run>
|
|
||||||
<ports>
|
|
||||||
<port>${database.port}:${postgresql.port}</port>
|
|
||||||
</ports>
|
|
||||||
<env>
|
|
||||||
<POSTGRES_PASSWORD>${alfresco.db.password}</POSTGRES_PASSWORD>
|
|
||||||
<POSTGRES_USER>${alfresco.db.username}</POSTGRES_USER>
|
|
||||||
<POSTGRES_DB>${alfresco.test.db.name}</POSTGRES_DB>
|
|
||||||
</env>
|
|
||||||
<cmd>
|
|
||||||
<shell>-c max_connections=300</shell>
|
|
||||||
</cmd>
|
|
||||||
<wait>
|
|
||||||
<log>database system is ready to accept connections</log>
|
|
||||||
<time>20000</time>
|
|
||||||
</wait>
|
|
||||||
</run>
|
|
||||||
</image>
|
|
||||||
<image>
|
|
||||||
<name>alfresco/alfresco-activemq:${activemq.version}</name>
|
|
||||||
<run>
|
|
||||||
<ports>
|
|
||||||
<port>${activemq.port1}:${activemq.port1}</port>
|
|
||||||
<port>${activemq.port2}:${activemq.port2}</port>
|
|
||||||
</ports>
|
|
||||||
</run>
|
|
||||||
</image>
|
|
||||||
</images>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>start</id>
|
<id>start</id>
|
||||||
@@ -504,6 +470,40 @@
|
|||||||
<goals>
|
<goals>
|
||||||
<goal>start</goal>
|
<goal>start</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<alias>test-database</alias>
|
||||||
|
<name>postgres:${postgres.version}</name>
|
||||||
|
<run>
|
||||||
|
<ports>
|
||||||
|
<port>${database.port}:${postgresql.port}</port>
|
||||||
|
</ports>
|
||||||
|
<env>
|
||||||
|
<POSTGRES_PASSWORD>${alfresco.db.password}</POSTGRES_PASSWORD>
|
||||||
|
<POSTGRES_USER>${alfresco.db.username}</POSTGRES_USER>
|
||||||
|
<POSTGRES_DB>${alfresco.test.db.name}</POSTGRES_DB>
|
||||||
|
</env>
|
||||||
|
<cmd>
|
||||||
|
<shell>-c max_connections=300</shell>
|
||||||
|
</cmd>
|
||||||
|
<wait>
|
||||||
|
<log>database system is ready to accept connections</log>
|
||||||
|
<time>20000</time>
|
||||||
|
</wait>
|
||||||
|
</run>
|
||||||
|
</image>
|
||||||
|
<image>
|
||||||
|
<name>alfresco/alfresco-activemq:${activemq.version}</name>
|
||||||
|
<run>
|
||||||
|
<ports>
|
||||||
|
<port>${activemq.port1}:${activemq.port1}</port>
|
||||||
|
<port>${activemq.port2}:${activemq.port2}</port>
|
||||||
|
</ports>
|
||||||
|
</run>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>stop</id>
|
<id>stop</id>
|
||||||
@@ -511,6 +511,40 @@
|
|||||||
<goals>
|
<goals>
|
||||||
<goal>stop</goal>
|
<goal>stop</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<alias>test-database</alias>
|
||||||
|
<name>postgres:${postgres.version}</name>
|
||||||
|
<run>
|
||||||
|
<ports>
|
||||||
|
<port>${database.port}:${postgresql.port}</port>
|
||||||
|
</ports>
|
||||||
|
<env>
|
||||||
|
<POSTGRES_PASSWORD>${alfresco.db.password}</POSTGRES_PASSWORD>
|
||||||
|
<POSTGRES_USER>${alfresco.db.username}</POSTGRES_USER>
|
||||||
|
<POSTGRES_DB>${alfresco.test.db.name}</POSTGRES_DB>
|
||||||
|
</env>
|
||||||
|
<cmd>
|
||||||
|
<shell>-c max_connections=300</shell>
|
||||||
|
</cmd>
|
||||||
|
<wait>
|
||||||
|
<log>database system is ready to accept connections</log>
|
||||||
|
<time>20000</time>
|
||||||
|
</wait>
|
||||||
|
</run>
|
||||||
|
</image>
|
||||||
|
<image>
|
||||||
|
<name>alfresco/alfresco-activemq:${activemq.version}</name>
|
||||||
|
<run>
|
||||||
|
<ports>
|
||||||
|
<port>${activemq.port1}:${activemq.port1}</port>
|
||||||
|
<port>${activemq.port2}:${activemq.port2}</port>
|
||||||
|
</ports>
|
||||||
|
</run>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@@ -666,5 +666,22 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>start-db</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>skip.integrationtests</name>
|
||||||
|
<value>false</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.fabric8</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
Reference in New Issue
Block a user