-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapp-build.yml
47 lines (43 loc) · 1.25 KB
/
app-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Backend
#
# Backend:: Cache for Maven (.m2 repository)
m2_cache:
image: busybox
labels:
com.mgreau.tennistour.maven.cache: "Cache Maven"
#command: mkdir /root/.m2/repository
volumes:
- ./cache/.m2/repository:/root/.m2/repository
#- ./cache/.m2/settings.xml:/root/.m2/settings.xml
# Backend:: Project CodeBase
ws_source:
image: busybox
labels:
com.mgreau.tennistour.ws.source: "Java sources"
volumes:
- ./app/:/myproject
# Backend WS:: Build project
ws_build:
image: maven:3.2.3-jdk-8
labels:
com.mgreau.docker4dev.backend.ws.build: "Build WS app"
command: mvn clean package -pl tennistour-core,tennistour-realtime-server -Dmaven.test.skip=true -DskipTests -am -DfinalName=ws
volumes_from:
- m2_cache
- ws_source
working_dir: /myproject
environment:
MAVEN_OPTS: -Xshare:auto -Xms128M -Xmx1G
# Backend Batch:: Build project
batch_build:
image: maven:3.3.3-jdk-7
labels:
com.mgreau.docker4dev.backend.batch.build: "Build Batch app"
command: mvn package -pl tennistour-core,tennistour-batch -Dmaven.test.skip=true -DskipTests -am -DfinalName=batch
volumes_from:
- m2_cache
- ws_source
working_dir: /myproject
environment:
MAVEN_OPTS: -Xshare:auto -Xms128M -Xmx1G -XX:MaxPermSize=256M