-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
91 lines (86 loc) · 3.56 KB
/
docker-compose.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
datafordeler:
container_name: datafordeler
image: datafordeler:latest
build:
context: .
dockerfile: docker/Dockerfile
depends_on:
- datafordeler-db
env_file:
- ./docker/dev-env/datafordeler.env
volumes:
- ./docker/dev-env/sts_metadata.xml:/app/conf/sts_metadata.xml:ro
- ./plugin/cpr/src/test/resources/GLBASETEST:/app/dev-env/local/cpr/download/d170608.l534902
- ./plugin/cpr/src/test/resources/GLBASETEST2:/app/dev-env/local/cpr/download/d170610.l534901
# - ./plugin/cvr/src/test/resources/company_in.json:/app/dev-env/local/cvr/company_in.json
- ./plugin/cvr/src/test/resources/unit.json:/app/dev-env/local/cvr/unit.json
- ./plugin/cvr/src/test/resources/person.json:/app/dev-env/local/cvr/person.json
- ./plugin/geo/src/test/resources/municipality.json:/app/dev-env/local/geo/municipality.json
- ./plugin/geo/src/test/resources/locality.json:/app/dev-env/local/geo/locality.json
- ./plugin/geo/src/test/resources/post.json:/app/dev-env/local/geo/post.json
- ./plugin/geo/src/test/resources/road.json:/app/dev-env/local/geo/road.json
- ./plugin/geo/src/test/resources/access.json:/app/dev-env/local/geo/access.json
- ./plugin/geo/src/test/resources/unit.json:/app/dev-env/local/geo/unit.json
- ./plugin/geo/src/test/resources/building.json:/app/dev-env/local/geo/building.json
ports:
- 8080:80
command: [
"java",
"-Dloader.path=/app/plugin/jar/",
"--add-opens", "java.base/java.net=ALL-UNNAMED",
"--add-opens", "java.base/java.lang.invoke=ALL-UNNAMED",
"-Xms128M", "-Xmx4096M",
"-Dterminal.jline=false", "-Dterminal.ansi=true",
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005",
"-cp", "datafordeler-core-exec.jar",
"org.springframework.boot.loader.PropertiesLauncher"
]
datafordeler-db:
container_name: datafordeler-db
build:
context: .
dockerfile: docker/Dockerfile.sqlserver
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=testTEST1
volumes:
- ./docker/dev-env/local:/app/dev-env/local
- ./docker/dev-env/db/initiate-db.sql:/app/initiate-db.sql
- ./docker/manual_initiate.sh:/app/manual_initiate.sh
test:
profiles:
- donotstart
image: datafordeler:latest
build:
context: .
dockerfile: docker/Dockerfile
env_file:
- ./docker/dev-env/datafordeler.env
environment:
- DATABASE_CLASS=org.h2.Driver
- DATABASE_URL=jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE;INIT=CREATE SCHEMA IF NOT EXISTS DBO
- DATABASE_DIALECT=org.hibernate.dialect.H2Dialect
- DATABASE_USERNAME=test
- DATABASE_PASSWORD=test
- DATABASE_METHOD=create-drop
- DATABASE_DEFAULT_SCHEMA=dbo
- SECONDARY_DATABASE_CLASS=org.h2.Driver
- SECONDARY_DATABASE_URL=jdbc:h2:mem:db2;DB_CLOSE_DELAY=-1;MVCC=TRUE;INIT=CREATE SCHEMA IF NOT EXISTS DBO
- SECONDARY_DATABASE_DIALECT=org.hibernate.dialect.H2Dialect
- SECONDARY_DATABASE_USERNAME=test
- SECONDARY_DATABASE_PASSWORD=test
- SECONDARY_DATABASE_METHOD=create-drop
- SECONDARY_DATABASE_DEFAULT_SCHEMA=dbo
- CRON_ENABLE=true
command: bash -c "cd /code && mvn --batch-mode -T 2C test"
# command: bash -c "cd /code/plugin/statistik && mvn --batch-mode -T 2C -Dtest=dk.magenta.datafordeler.statistik.*Test test"
#use docker-compose up test to execute tests
openapi:
build:
context: .
dockerfile: docker/Dockerfile.openapi
ports:
- "8081:8080"
volumes:
datafordeler-gl: