-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
64 lines (58 loc) · 1.48 KB
/
Copy pathcompose.yaml
File metadata and controls
64 lines (58 loc) · 1.48 KB
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
---
services:
algorithm-exercises-cpp-test:
image: algorithm-exercises-cpp:test
build:
context: .
target: testing
environment:
LOG_LEVEL: ${LOG_LEVEL:-info} ## (1) ## info | debug
BRUTEFORCE: ${BRUTEFORCE:-false} ## (1) ## true | false
volumes:
- ./coverage:/app/coverage
profiles: ["testing"]
algorithm-exercises-cpp-lint:
image: algorithm-exercises-cpp:lint
build:
context: .
target: lint
volumes:
- ./.clang-format:/app/.clang-format
- ./Makefile:/app/Makefile
- ./src:/app/src
profiles: ["lint"]
markdownlint:
image: goncl/markdownlint-cli:latest
working_dir: /workspace
volumes:
- ./:/workspace
profiles: ["lint"]
yamllint:
image: goncl/yamllint:latest
working_dir: /workspace
volumes:
- ./:/workspace
profiles: ["lint"]
algorithm-exercises-cpp-dev:
image: algorithm-exercises-cpp:dev
build:
context: .
target: development
environment:
LOG_LEVEL: ${LOG_LEVEL:-info} ## (1) ## info | debug
BRUTEFORCE: ${BRUTEFORCE:-false} ## (1) ## true | false
volumes:
- ./:/app
profiles: ["development"]
algorithm-exercises-cpp:
image: algorithm-exercises-cpp:latest
build:
context: .
target: production
# volumes:
# - ./:/app
profiles: ["production"]
## REFERENCES:
## (1) Passing Environment variable with fallback value:
## https://stackoverflow.com/a/70772707/6366150
##