-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
75 lines (68 loc) · 1.8 KB
/
Copy pathcompose.yaml
File metadata and controls
75 lines (68 loc) · 1.8 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
65
66
67
68
69
70
71
72
73
74
75
---
services:
algorithm-exercises-cpp-test:
image: algorithm-exercises-cpp:test
build:
context: .
dockerfile: Dockerfile.${BASE_IMAGE:-alpine}
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: .
dockerfile: Dockerfile.${BASE_IMAGE:-alpine}
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']
prettier:
image: goncl/prettier:3.9.8
working_dir: /workspace
volumes:
- ./:/workspace
profiles: ['lint']
algorithm-exercises-cpp-dev:
image: algorithm-exercises-cpp:dev
build:
context: .
dockerfile: Dockerfile.${BASE_IMAGE:-alpine}
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: .
dockerfile: Dockerfile.${BASE_IMAGE:-alpine}
target: production
# volumes:
# - ./:/app
profiles: ['production']
## REFERENCES:
## (1) Passing Environment variable with fallback value:
## https://stackoverflow.com/a/70772707/6366150
##