119 lines
3.7 KiB
XML
119 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://tiles.bluetrainsoftware.com/maven/tiles/1.1.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://tiles.bluetrainsoftware.com/maven/tiles/1.1.0 https://bitbucket.org/inteligr8/maven-tiles/raw/xsd/src/main/resources/maven-tiles.xsd">
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>rad-aps</id>
|
|
<activation>
|
|
<property>
|
|
<name>rad</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<!-- Using Docker for ACS Search -->
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>${beedk.plugins.fabric8.docker.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>run-aps</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals><goal>start</goal></goals>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>postgres:${aps-postgres.version}</name>
|
|
<alias>aps-db</alias>
|
|
<run>
|
|
<env>
|
|
<POSTGRES_PASSWORD>alfresco</POSTGRES_PASSWORD>
|
|
<POSTGRES_USER>alfresco</POSTGRES_USER>
|
|
<POSTGRES_DB>activiti</POSTGRES_DB>
|
|
</env>
|
|
<network>
|
|
<mode>custom</mode>
|
|
<name>${project.artifactId}</name>
|
|
</network>
|
|
</run>
|
|
</image>
|
|
<image>
|
|
<name>alfresco/process-services:${aps.version}</name>
|
|
<alias>aps-app</alias>
|
|
<run>
|
|
<env>
|
|
<ACTIVITI_DATASOURCE_USERNAME>alfresco</ACTIVITI_DATASOURCE_USERNAME>
|
|
<ACTIVITI_DATASOURCE_PASSWORD>alfresco</ACTIVITI_DATASOURCE_PASSWORD>
|
|
<ACTIVITI_DATASOURCE_DRIVER>org.postgresql.Driver</ACTIVITI_DATASOURCE_DRIVER>
|
|
<ACTIVITI_HIBERNATE_DIALECT>org.hibernate.dialect.PostgreSQLDialect</ACTIVITI_HIBERNATE_DIALECT>
|
|
<ACTIVITI_DATASOURCE_URL>jdbc:postgresql://${project.artifactId}-aps-db:5432/activiti?characterEncoding=UTF-8</ACTIVITI_DATASOURCE_URL>
|
|
</env>
|
|
<ports>
|
|
<port>${aps.port}:8080</port>
|
|
</ports>
|
|
<volumes>
|
|
<bind>
|
|
<volume>${aps.license.directory}:/root/.activiti/enterprise-license:ro</volume>
|
|
</bind>
|
|
</volumes>
|
|
<dependsOn>
|
|
<container>aps-db</container>
|
|
</dependsOn>
|
|
<network>
|
|
<mode>custom</mode>
|
|
<name>${project.artifactId}</name>
|
|
</network>
|
|
</run>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<!-- allow downstream tiles to default this before this tile does -->
|
|
<profile>
|
|
<id>tomcat-opts-unspecified</id>
|
|
<activation>
|
|
<property>
|
|
<name>!aps.tomcat.opts</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<aps.tomcat.opts></aps.tomcat.opts>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>default-props</id>
|
|
<activation>
|
|
<property>
|
|
<name>!some-prop-that-never-exists</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<!-- configurable -->
|
|
<alfresco.license.directory>${user.home}/alfresco/license</alfresco.license.directory>
|
|
<aps.license.directory>${alfresco.license.directory}/aps</aps.license.directory>
|
|
|
|
<!-- ports -->
|
|
<aps.port>8080</aps.port>
|
|
|
|
<!-- versions -->
|
|
<aps-postgres.version>9.6</aps-postgres.version>
|
|
<aps.version>1.11.1.1</aps.version>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<tiles>
|
|
<!-- Documentation: https://bitbucket.org/inteligr8/ootbee-beedk/src/stable/beedk-run-tile -->
|
|
<tile>@project.groupId@:beedk-run-tile:@project.version@</tile>
|
|
</tiles>
|
|
|
|
</project>
|