127 lines
5.0 KiB
XML
127 lines
5.0 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-acs-share</id>
|
|
<activation>
|
|
<property>
|
|
<name>rad</name>
|
|
</property>
|
|
</activation>
|
|
<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>run-acs-share</id>
|
|
<phase>process-classes</phase>
|
|
<goals><goal>start</goal></goals>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>docker.inteligr8.com/inteligr8/tomcat-rad:${tomcat-rad.version}</name>
|
|
<alias>acs-share</alias>
|
|
<run>
|
|
<env>
|
|
<ENABLE_JDWP>${acs-share.debugger.enabled}</ENABLE_JDWP>
|
|
<ENABLE_HOTSWAP>${acs-share.hotswap.enabled}</ENABLE_HOTSWAP>
|
|
<DISABLE_HOTSWAP_PLUGINS>${acs-share.hotswap.disablePlugins}</DISABLE_HOTSWAP_PLUGINS>
|
|
<CATALINA_OPTS>${acs-share.tomcat.opts}</CATALINA_OPTS>
|
|
</env>
|
|
<ports>
|
|
<port>${acs-share.port}:8080</port>
|
|
<port>${acs-share.debugger.port}:8000</port>
|
|
</ports>
|
|
<network>
|
|
<mode>custom</mode>
|
|
<name>${project.artifactId}</name>
|
|
</network>
|
|
<volumes>
|
|
<bind>
|
|
<volume>${beedk.deploy.share.warFile}:/var/lib/tomcat/webapps/share.war:ro</volume>
|
|
<volume>${beedk.deploy.share.classesDirectory}:/var/lib/tomcat/dev/classes:ro</volume>
|
|
<volume>${beedk.deploy.share.modClassesDirectory}:/var/lib/tomcat/dev/classes-extra1:ro</volume>
|
|
<volume>${beedk.deploy.share.extClassesDirectory}:/var/lib/tomcat/dev/classes-extra2:ro</volume>
|
|
<volume>${beedk.deploy.share.testClassesDirectory}:/var/lib/tomcat/dev/classes-extra3:ro</volume>
|
|
<volume>${beedk.deploy.share.extDirectory}:/var/lib/tomcat/dev/lib:ro</volume>
|
|
<volume>${beedk.deploy.share.webDirectory}:/var/lib/tomcat/dev/web:ro</volume>
|
|
</bind>
|
|
</volumes>
|
|
<wait>
|
|
<http>
|
|
<url>http://localhost:${acs-share.port}/share</url>
|
|
<method>GET</method>
|
|
<status>200..399</status>
|
|
</http>
|
|
<time>${acs-share.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>!acs-share.tomcat.opts</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<acs-share.tomcat.opts></acs-share.tomcat.opts>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>default-props</id>
|
|
<activation>
|
|
<property>
|
|
<name>!some-prop-that-never-exists</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<!-- configurable -->
|
|
<beedk.deploy.share.classesDirectory>${project.build.directory}/doesnotexist</beedk.deploy.share.classesDirectory>
|
|
<beedk.deploy.share.modClassesDirectory>${project.build.directory}/doesnotexist</beedk.deploy.share.modClassesDirectory>
|
|
<beedk.deploy.share.extClassesDirectory>${project.build.directory}/doesnotexist</beedk.deploy.share.extClassesDirectory>
|
|
<beedk.deploy.share.testClassesDirectory>${project.build.directory}/doesnotexist</beedk.deploy.share.testClassesDirectory>
|
|
<beedk.deploy.share.extDirectory>${project.build.directory}/doesnotexist</beedk.deploy.share.extDirectory>
|
|
<beedk.deploy.share.webDirectory>${project.build.directory}/doesnotexist</beedk.deploy.share.webDirectory>
|
|
<beedk.deploy.share.warDirectory>${project.build.warDirectory}</beedk.deploy.share.warDirectory>
|
|
<acs-share.timeout>150000</acs-share.timeout>
|
|
<acs-share.debugger.enabled>true</acs-share.debugger.enabled>
|
|
<acs-share.hotswap.enabled>true</acs-share.hotswap.enabled>
|
|
<acs-share.hotswap.disablePlugins></acs-share.hotswap.disablePlugins>
|
|
|
|
<!-- ports -->
|
|
<acs-share.port>8180</acs-share.port>
|
|
<acs-share.debugger.port>8100</acs-share.debugger.port>
|
|
|
|
<!-- versions -->
|
|
<tomcat-rad.version>9-1.4</tomcat-rad.version>
|
|
|
|
<!-- configuring beedk-acs-webapp-artifact-tile -->
|
|
<alfresco.war.artifactId>share</alfresco.war.artifactId>
|
|
</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>
|