-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.65 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
version: '3.8'
services:
simplang-dev:
build: .
container_name: simplang-dev
working_dir: /app
volumes:
# Mount source code for live editing
- ./src:/app/src
- ./tests:/app/tests
- ./include:/app/include
- ./runtime:/app/runtime
- ./docs:/app/docs
# Mount project files
- ./CMakeLists.txt:/app/CMakeLists.txt
- ./build.sh:/app/build.sh
- ./run_tests.sh:/app/run_tests.sh
# Mount any new scripts we create
- ./test_debugger_demo.sh:/app/test_debugger_demo.sh
- ./build_debug_test.sh:/app/build_debug_test.sh
- ./test_debugger_simple.cpp:/app/test_debugger_simple.cpp
# Keep build directory persistent but separate
- simplang-build:/app/build
environment:
- LD_LIBRARY_PATH=/app/build/runtime:/usr/local/lib
stdin_open: true
tty: true
command: /bin/bash
# Service for running tests quickly
simplang-test:
build: .
volumes:
- ./src:/app/src
- ./tests:/app/tests
- ./include:/app/include
- ./runtime:/app/runtime
- simplang-build:/app/build
environment:
- LD_LIBRARY_PATH=/app/build/runtime:/usr/local/lib
command: ./run_tests.sh
# Service for running the debugger
simplang-debug:
build: .
volumes:
- ./src:/app/src
- ./tests:/app/tests
- ./include:/app/include
- ./runtime:/app/runtime
- simplang-build:/app/build
environment:
- LD_LIBRARY_PATH=/app/build/runtime:/usr/local/lib
stdin_open: true
tty: true
command: ./build/tests/debug_test_runner
volumes:
simplang-build: