171 lines
6.1 KiB
XML
171 lines
6.1 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>
|
|
<!-- This plugin downloads the parameterized WAR -->
|
|
<plugin>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<executions>
|
|
<!-- This execution downloads the parameterized WAR -->
|
|
<execution>
|
|
<id>download-webapp</id>
|
|
<phase>process-classes</phase>
|
|
<goals><goal>copy</goal></goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>${aps.war.groupId}</groupId>
|
|
<artifactId>${aps.war.artifactId}</artifactId>
|
|
<version>${aps.war.version}</version>
|
|
<type>war</type>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<outputDirectory>${project.build.warDirectory}</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- Using Docker to host the web application -->
|
|
<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-classes</phase>
|
|
<goals><goal>start</goal></goals>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>postgres:${aps-postgres.version}</name>
|
|
<alias>acs-db</alias>
|
|
<run>
|
|
<env>
|
|
<POSTGRES_PASSWORD>activiti</POSTGRES_PASSWORD>
|
|
<POSTGRES_USER>activiti</POSTGRES_USER>
|
|
<POSTGRES_DB>activiti</POSTGRES_DB>
|
|
</env>
|
|
<ports>
|
|
<port>${aps-postgres.port}:5432</port>
|
|
</ports>
|
|
<network>
|
|
<mode>custom</mode>
|
|
<name>${project.artifactId}</name>
|
|
</network>
|
|
</run>
|
|
</image>
|
|
<image>
|
|
<name>docker.inteligr8.com/inteligr8/tomcat-rad:${tomcat-rad.version}</name>
|
|
<alias>aps</alias>
|
|
<run>
|
|
<env>
|
|
<JAVA_MEMORY_MAX>${aps.memory}</JAVA_MEMORY_MAX>
|
|
<ENABLE_HOTSWAP>${aps.hotswap.enabled}</ENABLE_HOTSWAP>
|
|
<ENABLE_JDWP>${aps.debugger.enabled}</ENABLE_JDWP>
|
|
<CATALINA_OPTS>${aps.tomcat.opts}</CATALINA_OPTS>
|
|
</env>
|
|
<ports>
|
|
<port>${aps.port}:8080</port>
|
|
<port>${aps.debugger.port}:8000</port>
|
|
</ports>
|
|
<network>
|
|
<mode>custom</mode>
|
|
<name>${project.artifactId}</name>
|
|
</network>
|
|
<volumes>
|
|
<bind>
|
|
<volume>${aps.license.directory}:/root/.activiti/enterprise-license:ro</volume>
|
|
<volume>${beedk.deploy.aps.warFile}:/var/lib/tomcat/webapps/activiti-app.war:ro</volume>
|
|
<volume>${beedk.deploy.aps.classesDirectory}:/var/lib/tomcat/dev/classes:ro</volume>
|
|
<volume>${beedk.deploy.aps.testClassesDirectory}:/var/lib/tomcat/dev/classes-extra1:ro</volume>
|
|
<volume>${beedk.deploy.aps.extDirectory}:/var/lib/tomcat/dev/lib:ro</volume>
|
|
</bind>
|
|
</volumes><!--
|
|
<wait>
|
|
<http>
|
|
<url>http://localhost:${aps.port}/activiti-app/service/api/server</url>
|
|
<method>GET</method>
|
|
<status>200..399</status>
|
|
</http>
|
|
<time>${aps.timeout}</time>
|
|
</wait>-->
|
|
</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 -->
|
|
<aps.war.groupId>org.alfresco</aps.war.groupId>
|
|
<aps.war.artifactId>activiti-app</aps.war.artifactId>
|
|
<project.build.warDirectory>${project.build.directory}/war</project.build.warDirectory>
|
|
<beedk.deploy.aps.classesDirectory>${project.build.directory}/doesnotexist</beedk.deploy.aps.classesDirectory>
|
|
<beedk.deploy.aps.testClassesDirectory>${project.build.directory}/doesnotexist</beedk.deploy.aps.testClassesDirectory>
|
|
<beedk.deploy.aps.extDirectory>${project.build.directory}/doesnotexist</beedk.deploy.aps.extDirectory>
|
|
<beedk.deploy.aps.warDirectory>${project.build.warDirectory}</beedk.deploy.aps.warDirectory>
|
|
<aps.timeout>60000</aps.timeout>
|
|
<aps.memory>512m</aps.memory>
|
|
<aps.hotswap.enabled>true</aps.hotswap.enabled>
|
|
<aps.debugger.enabled>true</aps.debugger.enabled>
|
|
<alfresco.license.directory>${user.home}/alfresco/license</alfresco.license.directory>
|
|
<aps.license.directory>${alfresco.license.directory}/aps</aps.license.directory>
|
|
|
|
<!-- ports -->
|
|
<aps-postgres.port>5432</aps-postgres.port>
|
|
<aps.port>8080</aps.port>
|
|
<aps.debugger.port>8000</aps.debugger.port>
|
|
|
|
<!-- versions -->
|
|
<aps.version>1.11.1.1</aps.version>
|
|
<tomcat-rad.version>9-1.4</tomcat-rad.version>
|
|
|
|
<!-- results -->
|
|
<project.build.warFile>${project.build.warDirectory}/${aps.war.artifactId}-${aps.war.version}.war</project.build.warFile>
|
|
</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>
|