Created
December 17, 2018 11:28
-
-
Save paulbrodner/f7e56fcdc65a55f61010c62bd7787068 to your computer and use it in GitHub Desktop.
start docker-compose in pom.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <profile> | |
| <id>acs-deployment</id> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>com.googlecode.maven-download-plugin</groupId> | |
| <artifactId>download-maven-plugin</artifactId> | |
| <version>1.3.0</version><!-- 1.4.0 gives class not found issues with "CachedFileEntry": https://github.com/maven-download-plugin/maven-download-plugin/issues/80 --> | |
| <executions> | |
| <execution> | |
| <id>unpack-solr-war</id> | |
| <phase>generate-resources</phase> | |
| <goals> | |
| <goal>wget</goal> | |
| </goals> | |
| <configuration> | |
| <url>https://raw.githubusercontent.com/Alfresco/acs-deployment/master/docker-compose/docker-compose.yml</url> | |
| <outputDirectory>${project.build.directory}</outputDirectory> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>1.8</version> | |
| <executions> | |
| <execution> | |
| <id>docker-compose-up</id> | |
| <phase>process-resources</phase> | |
| <goals> | |
| <goal>run</goal> | |
| </goals> | |
| <configuration> | |
| <target> | |
| <echo>Starting ACS in docker-compose...</echo> | |
| <exec dir="target" executable="docker-compose" failonerror="true"> | |
| <arg line="config" /> | |
| </exec> | |
| <exec dir="target" executable="docker-compose" failonerror="true"> | |
| <arg line="up -d" /> | |
| </exec> | |
| </target> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.ant</groupId> | |
| <artifactId>ant-jsch</artifactId> | |
| <version>1.8.2</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment