-
Notifications
You must be signed in to change notification settings - Fork 3
/
batect.yml
77 lines (77 loc) · 1.94 KB
/
batect.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
config_variables:
db-name:
description: Name of the DB to create for all local DBs
default: db
db-user:
description: Username to use for all local DBs
default: user
db-password:
description: Password to use for all local DBs
default: password
containers:
recce-gradle:
image: eclipse-temurin:17-jdk
ports:
- local: 8080
container: 8080
volumes:
- type: cache
name: gradle-working-dir
container: /code/.gradle
- type: cache
name: gradle-build-dir
container: /code/build
- local: .
container: /code
options: cached
- type: cache
name: gradle-cache
container: /root/.gradle
working_directory: /code
environment:
GRADLE_OPTS: -Dorg.gradle.daemon=false
recce-db:
image: postgres:16-alpine
environment:
POSTGRES_DB: <{db-name}
POSTGRES_USER: <{db-user}
POSTGRES_PASSWORD: <{db-password}
ports:
- local: 9000
container: 5432
volumes:
- type: cache
name: recce-db-data
container: /var/lib/postgresql/data
recce-docs:
image: structurizr/lite
ports:
- local: 8081
container: 8080
volumes:
- local: ./docs
container: /usr/local/structurizr
options: cached
tasks:
clean:
description: Cleans the Gradle build
group: recce
run:
container: recce-gradle
command: ./gradlew cleanLeaveBuildDir
build:
description: Compile and test the Recce server code within Gradle (note this excludes tests that require Docker)
group: recce
run:
container: recce-gradle
command: ./gradlew build
run-db:
description: Start a standalone Postgres DB for use with Recce run locally (e.g from IDE/Gradle for debugging)
group: recce
run:
container: recce-db
docs:
description: Render architecture documentation
group: recce
run:
container: recce-docs