-
Notifications
You must be signed in to change notification settings - Fork 3
/
batect-shared.yml
56 lines (56 loc) · 2.27 KB
/
batect-shared.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
include:
- batect.yml
containers:
recce-docker-local:
image: recce-server
dependencies:
- recce-db # Expected to be defined by batect.yml
- source-db # Expected to be defined by a wrapping example scenario that includes this
- target-db # Expected to be defined by a wrapping example scenario that includes this
ports:
- local: 8080
container: 8080
volumes:
- local: ./examples
container: /examples
options: cached
tasks:
run:
description: Compile and run the Recce server within Gradle with a configured `example-scenario`
group: recce
dependencies:
- recce-db # Expected to be defined by batect.yml
- source-db # Expected to be defined by a wrapping example scenario that includes this
- target-db # Expected to be defined by a wrapping example scenario that includes this
prerequisites:
- migrate-* # Run any migrate tasks included for the configured scenario against any included source/target DBs
run:
container: recce-gradle
command: ./gradlew run
environment:
DATABASE_HOST: recce-db
DATABASE_PORT: 5432
MICRONAUT_CONFIG_FILES: examples/scenario/<{example-scenario}/application-<{example-scenario}.yml
run-docker-local:
description: Run a previously built Recce server Docker image with a configured `example-scenario`
group: recce
prerequisites:
- migrate-* # Run any migrate tasks included for the configured scenario against any included source/target DBs
run:
container: recce-docker-local
environment:
AUTH_USERNAME: admin
AUTH_PASSWORD: admin
DATABASE_HOST: recce-db
DATABASE_PORT: 5432
MICRONAUT_CONFIG_FILES: /examples/scenario/<{example-scenario}/application-<{example-scenario}.yml
run-deps:
description: Run only dependencies of Recce and a configured `example-scenario`
group: recce
prerequisites:
- migrate-* # Run any migrate tasks included for the configured scenario against any included source/target DBs
dependencies:
- source-db # Expected to be defined by a wrapping example scenario that includes this
- target-db # Expected to be defined by a wrapping example scenario that includes this
run:
container: recce-db