-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
64 lines (58 loc) · 1.92 KB
/
compose.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
#
# This helps running all the tests and checks from various compilers we support
#
# usage: docker compose up --build --force-recreate -d # checks all compilers
# docker compose run --rm clang-14 bash -c "build-and-test;bash" # interactive
# docker compose logs -f gcc-12 # gcc-12 build logs
# docker compose run gcc-12 bash # shell into gcc-12 to run interactively
# docker compose down # stops containers
# docker compose run --rm clean # cleans the FetchContent `build/_dep`
services:
base:
build:
context: .
dockerfile: Dockerfile
target: base
user: user:user
tty: true
stdin_open: true
restart: no
volumes: [ "./:/usr/src/flexi_cfg" ]
clean:
extends:
service: base
container_name: clean
build:
target: clean
volumes: [ "${HOME}/.cache/flexi_cfg_build_deps/:/usr/src/flexi_cfg_build/_deps" ]
profiles: [ donotstart ]
gcc-12:
extends:
service: base
container_name: gcc-12
tty: true
stdin_open: true
build:
target: gcc-12
volumes: [ "${HOME}/.cache/flexi_cfg_build_deps/gcc-12:/usr/src/flexi_cfg_build/_deps" ]
clang-13:
extends:
service: base
container_name: clang-13
build:
target: clang-13
volumes: [ "${HOME}/.cache/flexi_cfg_build_deps/clang-13:/usr/src/flexi_cfg_build/_deps" ]
clang-14:
extends:
service: base
container_name: clang-14
build:
target: clang-14
volumes: [ "${HOME}/.cache/flexi_cfg_build_deps/clang-14:/usr/src/flexi_cfg_build/_deps" ]
clang-15:
extends:
service: base
container_name: clang-15
build:
target: clang-15
volumes: [ "${HOME}/.cache/flexi_cfg_build_deps/clang-15:/usr/src/flexi_cfg_build/_deps" ]