217 lines
7.6 KiB
XML
217 lines
7.6 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">
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- 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>start-acs-platform</id>
|
|
<phase>pre-integration-test</phase>
|
|
<goals><goal>start</goal></goals>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>postgres:${acs-postgres.version}</name>
|
|
<alias>acs-db</alias>
|
|
<run>
|
|
<skip>${skipTests}</skip>
|
|
<env>
|
|
<POSTGRES_PASSWORD>alfresco</POSTGRES_PASSWORD>
|
|
<POSTGRES_USER>alfresco</POSTGRES_USER>
|
|
<POSTGRES_DB>alfresco</POSTGRES_DB>
|
|
</env>
|
|
<ports>
|
|
<port>${acs-postgres.port}:5432</port>
|
|
</ports>
|
|
<network>
|
|
<mode>custom</mode>
|
|
<name>${project.artifactId}</name>
|
|
</network>
|
|
</run>
|
|
</image>
|
|
<image>
|
|
<name>alfresco/alfresco-activemq:${acs-activemq.version}</name>
|
|
<alias>acs-mq</alias>
|
|
<run>
|
|
<skip>${skipTests}</skip>
|
|
<ports>
|
|
<port>${acs-activemq.port}:8161</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>acs-platform</alias>
|
|
<run>
|
|
<skip>${skipTests}</skip>
|
|
<env>
|
|
<JAVA_MEMORY_MAX>${acs-platform.memory}</JAVA_MEMORY_MAX>
|
|
<CATALINA_OPTS>-Ddir.root=/tmp/alf_data -Ddb.driver=org.postgresql.Driver -Ddb.url=jdbc:postgresql://${project.artifactId}-acs-db:5432/alfresco \
|
|
-Dmessaging.broker.url=failover:\(tcp://${project.artifactId}-acs-mq:61616\)?timeout\=3000\&jms.useCompression\=true \
|
|
-Dtransform.service.enabled=${beedk.deploy.ats.enabled} -Dtransform.service.url=http://${project.artifactId}-ats-atr:8095 -Dsfs.url=http://${project.artifactId}-ats-sfs:8099 \
|
|
-Dlocal.transform.service.enabled=${beedk.deploy.alts.enabled} \
|
|
-DlocalTransform.core-aio.url=http://${project.artifactId}-ate-aio:8090 -DlocalTransform.ate.url=http://${project.artifactId}-ate:8090 \
|
|
-Djodconverter.enabled=false \
|
|
-Dalfresco-pdf-renderer.url=http://${project.artifactId}-ate-aio:8090 -Djodconverter.url=http://${project.artifactId}-ate-aio:8090 -Dimg.url=http://${project.artifactId}-ate-aio:8090 -Dtika.url=http://${project.artifactId}-ate-aio:8090 -Dtransform.misc.url=http://${project.artifactId}-ate-aio:8090 \
|
|
-Dindex.subsystem.name=${beedk.deploy.platform.index} -Dsolr.host=${project.artifactId}-acs-search -Dsolr.secureComms=none \
|
|
${acs-platform.tomcat.opts}</CATALINA_OPTS>
|
|
</env>
|
|
<ports>
|
|
<port>${acs-platform.port}:8080</port>
|
|
</ports>
|
|
<network>
|
|
<mode>custom</mode>
|
|
<name>${project.artifactId}</name>
|
|
</network>
|
|
<volumes>
|
|
<bind>
|
|
<volume>${beedk.deploy.platform.warFile}:/var/lib/tomcat/webapps/alfresco.war:ro</volume>
|
|
<volume>${beedk.deploy.platform.testClassesDirectory}:/var/lib/tomcat/dev/classes:ro</volume>
|
|
<volume>${beedk.deploy.platform.extDirectory}:/var/lib/tomcat/dev/lib:ro</volume>
|
|
<volume>${beedk.deploy.platform.dataDirectory}:/tmp/alf_data:rw</volume>
|
|
</bind>
|
|
</volumes>
|
|
<wait>
|
|
<http>
|
|
<url>http://localhost:${acs-platform.port}/alfresco/service/api/server</url>
|
|
<method>GET</method>
|
|
<status>200..399</status>
|
|
</http>
|
|
<time>${acs-platform.timeout}</time>
|
|
</wait>
|
|
</run>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>stop-acs-platform</id>
|
|
<phase>post-integration-test</phase>
|
|
<goals><goal>stop</goal></goals>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>postgres:${acs-postgres.version}</name>
|
|
<alias>acs-db</alias>
|
|
</image>
|
|
<image>
|
|
<name>alfresco/alfresco-activemq:${acs-activemq.version}</name>
|
|
<alias>acs-mq</alias>
|
|
</image>
|
|
<image>
|
|
<name>docker.inteligr8.com/inteligr8/tomcat-rad:${tomcat-rad.version}</name>
|
|
<alias>acs-platform</alias>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>acs-search-disabled</id>
|
|
<activation>
|
|
<property>
|
|
<name>!beedk.deploy.acs-search.enabled</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<beedk.deploy.platform.index>noindex</beedk.deploy.platform.index>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>acs-search-enabled</id>
|
|
<activation>
|
|
<property>
|
|
<name>beedk.deploy.acs-search.enabled</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<beedk.deploy.platform.index>solr6</beedk.deploy.platform.index>
|
|
</properties>
|
|
</profile>
|
|
<!-- allow downstream tiles to default this before this tile does -->
|
|
<profile>
|
|
<id>ats-unspecified</id>
|
|
<activation>
|
|
<property>
|
|
<name>!beedk.deploy.ats.enabled</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<beedk.deploy.ats.enabled>false</beedk.deploy.ats.enabled>
|
|
</properties>
|
|
</profile>
|
|
<!-- allow downstream tiles to default this before this tile does -->
|
|
<profile>
|
|
<id>alts-unspecified</id>
|
|
<activation>
|
|
<property>
|
|
<name>!beedk.deploy.alts.enabled</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<beedk.deploy.alts.enabled>false</beedk.deploy.alts.enabled>
|
|
</properties>
|
|
</profile>
|
|
<!-- allow downstream tiles to default this before this tile does -->
|
|
<profile>
|
|
<id>tomcat-opts-unspecified</id>
|
|
<activation>
|
|
<property>
|
|
<name>!acs-platform.tomcat.opts</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<acs-platform.tomcat.opts></acs-platform.tomcat.opts>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>default-props</id>
|
|
<activation>
|
|
<property>
|
|
<name>!some-prop-that-never-exists</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<!-- configurable -->
|
|
<beedk.deploy.platform.testClassesDirectory>${project.build.directory}/doesnotexist</beedk.deploy.platform.testClassesDirectory>
|
|
<beedk.deploy.platform.extDirectory>${project.build.directory}/doesnotexist</beedk.deploy.platform.extDirectory>
|
|
<beedk.deploy.platform.dataDirectory>${project.build.directory}/alf_data</beedk.deploy.platform.dataDirectory>
|
|
<acs-platform.timeout>120000</acs-platform.timeout>
|
|
<acs-platform.memory>1g</acs-platform.memory>
|
|
|
|
<!-- ports -->
|
|
<acs-postgres.port>5432</acs-postgres.port>
|
|
<acs-activemq.port>8161</acs-activemq.port>
|
|
<acs-platform.port>8080</acs-platform.port>
|
|
|
|
<!-- versions -->
|
|
<acs-postgres.version>9.6</acs-postgres.version>
|
|
<acs-activemq.version>5.15.8</acs-activemq.version>
|
|
<tomcat-rad.version>9-1.3</tomcat-rad.version>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<tiles>
|
|
<!-- Documentation: https://bitbucket.org/inteligr8/ootbee-beedk/src/stable/beedk-run-tile -->
|
|
<tile>com.inteligr8.ootbee:beedk-run-tile:1.0-SNAPSHOT</tile>
|
|
</tiles>
|
|
|
|
</project>
|