diff options
author | Manuel Bentele | 2021-05-26 16:47:19 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-05-26 16:47:19 +0200 |
commit | 359ddbec333a470266b4f4788c5d9959b083fa19 (patch) | |
tree | 26527a273c52c89039399cd083c1c854c296c4b3 /pom.xml | |
parent | Add support of Junit 5 and refactor unit tests (diff) | |
download | masterserver-359ddbec333a470266b4f4788c5d9959b083fa19.tar.gz masterserver-359ddbec333a470266b4f4788c5d9959b083fa19.tar.xz masterserver-359ddbec333a470266b4f4788c5d9959b083fa19.zip |
Build and run master-server as Docker container
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 62 |
1 files changed, 62 insertions, 0 deletions
@@ -14,6 +14,68 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> + <profiles> + <profile> + <id>dozmod-server:start</id> + <build> + <defaultGoal>pre-integration-test</defaultGoal> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>docker-compose:up</id> + <phase>pre-integration-test</phase> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + <configuration> + <executable>docker-compose</executable> + <arguments> + <argument>up</argument> + <argument>--build</argument> + <argument>--force-recreate</argument> + <argument>--detach</argument> + </arguments> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>dozmod-server:stop</id> + <build> + <defaultGoal>validate</defaultGoal> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>docker-compose:down</id> + <phase>validate</phase> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + <configuration> + <executable>docker-compose</executable> + <arguments> + <argument>down</argument> + </arguments> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + <build> <plugins> <plugin> |