-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.build.yml
50 lines (41 loc) · 1.17 KB
/
docker-compose.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
48
49
50
version: '2.4'
networks:
default:
external:
name: whirlpool-net
services:
base:
image: maven:3.6.1-jdk-13
command: bash -c " useradd --create-home --shell /bin/bash whirlpool && chown -R whirlpool:whirlpool /home/whirlpool/whirlpool-urlfrontier"
volumes:
- .:/home/whirlpool/whirlpool-urlfrontier
- wh-urlfrontier-mvn-local-repo:/var/maven/.m2
working_dir: /home/whirlpool/whirlpool-urlfrontier
environment:
- MAVEN_CONFIG=/var/maven/.m2
- JAVA_ENV=development
networks:
- default
compile:
extends:
service: base
command: mvn -Duser.home=/var/maven compile
run:
extends:
service: base
command: mvn exec:java -Dexec.mainClass="crawler.whirlpool.urlfrontier.Main"
package:
extends:
service: base
command: mvn -Duser.home=/var/maven clean package
package-run:
extends:
service: base
command: java -cp target/whirlpool-urlfrontier-1.0-SNAPSHOT-jar-with-dependencies.jar crawler.whirlpool.urlfrontier.Main
cli:
extends:
service: base
command: mvn versions:display-dependency-updates
volumes:
wh-urlfrontier-mvn-local-repo:
external: true