diff options
author | Manuel Bentele | 2021-03-09 10:47:55 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-03-11 07:46:19 +0100 |
commit | 208a9dd34b6bd4436599f857159e4c2b7290ea07 (patch) | |
tree | a2baf8bcd483c5cf19a5ceba774b73ff14516a81 /dozentenmodulserver/pom.xml | |
parent | [client,server] Remove unused/empty unit tests (diff) | |
download | tutor-module-208a9dd34b6bd4436599f857159e4c2b7290ea07.tar.gz tutor-module-208a9dd34b6bd4436599f857159e4c2b7290ea07.tar.xz tutor-module-208a9dd34b6bd4436599f857159e4c2b7290ea07.zip |
[server] Build and run dozmod-server as Docker container
Diffstat (limited to 'dozentenmodulserver/pom.xml')
-rw-r--r-- | dozentenmodulserver/pom.xml | 69 |
1 files changed, 66 insertions, 3 deletions
diff --git a/dozentenmodulserver/pom.xml b/dozentenmodulserver/pom.xml index 2c8abb4e..43339e0d 100644 --- a/dozentenmodulserver/pom.xml +++ b/dozentenmodulserver/pom.xml @@ -1,4 +1,5 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> @@ -31,6 +32,68 @@ </repository> </repositories> + <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> @@ -82,8 +145,8 @@ <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> - <useSystemClassLoader>false</useSystemClassLoader> - </configuration> + <useSystemClassLoader>false</useSystemClassLoader> + </configuration> </plugin> </plugins> </build> |