-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdip.yml
43 lines (40 loc) · 1.3 KB
/
dip.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
version: '7.1'
compose:
files:
- docker-compose.yml
- docker-compose.$DIP_OS.yml
project_name: c4model
environment:
WORKSPACE_PATH: workspace.dsl
WORKSPACE_JSON_PATH: workspace.json # TODO: replace from workspace.json?
OUTPUT_DIR: output/
interaction:
lite:
description: Start structurizr lite server
service: structurizr
compose:
run_options: [service-ports]
cli:
description: Run structurizr CLI
service: structurizr
command: structurizr.sh
validate:
description: Validate workspace
service: structurizr
command: structurizr.sh validate -w ${WORKSPACE_PATH}
export:
description: Export workspace to /output. You have to specify format using -f
service: structurizr
command: structurizr.sh export -w ${WORKSPACE_PATH} -o ${OUTPUT_DIR}
shell:
description: Open shell in the CLI container
service: structurizr
command: bash
repl:
description: Open workspace REPL
service: structurizr
command: structurizr-repl $WORKSPACE_JSON_PATH
push:
description: Upload workspace to Structurizr instance
service: structurizr
command: structurizr.sh push -id ${STRUCTURIZR_WORKSPACE_ID} -key ${STRUCTURIZR_WORKSPACE_KEY} -secret ${STRUCTURIZR_WORKSPACE_SECRET} -url ${STRUCTURIZR_URL} -workspace ${WORKSPACE_JSON_PATH}