97 lines
3.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <https://www.gnu.org/licenses/>.
*
-->
<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://git.inteligr8.com/inteligr8/maven-tiles/raw/xsd/src/main/resources/maven-tiles.xsd">
<build>
<plugins>
<!-- Using Docker for ACS Search -->
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>start-acs-search</id>
<phase>pre-integration-test</phase>
<goals><goal>start</goal></goals>
<configuration>
<images>
<image>
<name>alfresco/alfresco-search-services:${acs-search.version}</name>
<alias>acs-search</alias>
<run>
<skip>${skipTests}</skip>
<env>
<SOLR_ALFRESCO_HOST>${project.artifactId}-acs-platform</SOLR_ALFRESCO_HOST>
<SOLR_ALFRESCO_PORT>8080</SOLR_ALFRESCO_PORT>
<SOLR_SOLR_HOST>${project.artifactId}-acs-search</SOLR_SOLR_HOST>
<SOLR_SOLR_PORT>8983</SOLR_SOLR_PORT>
<SOLR_CREATE_ALFRESCO_DEFAULTS>alfresco</SOLR_CREATE_ALFRESCO_DEFAULTS>
<ALFRESCO_SECURE_COMMS>secret</ALFRESCO_SECURE_COMMS>
<JAVA_TOOL_OPTIONS>-Dalfresco.secureComms.secret=alfresco-secret</JAVA_TOOL_OPTIONS>
</env>
<network>
<mode>custom</mode>
<name>${project.artifactId}</name>
</network>
</run>
</image>
</images>
</configuration>
</execution>
<execution>
<id>stop-acs-search</id>
<phase>post-integration-test</phase>
<goals><goal>stop</goal></goals>
<configuration>
<images>
<image>
<name>alfresco/alfresco-search-services:${acs-search.version}</name>
<alias>acs-search</alias>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>default-props</id>
<activation>
<property>
<name>!some-prop-that-never-exists</name>
</property>
</activation>
<properties>
<!-- configuring beedk-acs-platform-it-tile -->
<!-- this tells the platform module to enable solr6 indexing -->
<beedk.deploy.acs-search.enabled>true</beedk.deploy.acs-search.enabled>
</properties>
</profile>
</profiles>
<tiles>
<!-- Documentation: https://git.inteligr8.com/inteligr8/ootbee-beedk/src/branch/stable/beedk-run-tile -->
<tile>@project.groupId@:beedk-run-tile:@project.version@</tile>
</tiles>
</project>