-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathcompose.yaml
More file actions
80 lines (74 loc) · 2.08 KB
/
Copy pathcompose.yaml
File metadata and controls
80 lines (74 loc) · 2.08 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
76
77
78
79
name: rtms
# Base configuration for all services
x-base: &base
build:
context: .
platform: linux/amd64
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
ports:
- "8080:8080"
volumes:
- .:/tmp/rtms
- ./logs:/tmp/rtms/logs
- ./test-results:/tmp/rtms/test-results
working_dir: /tmp/rtms
develop:
watch:
- action: rebuild
path: ./
ignore:
- dist
- logs
- node_modules
- test-results
target: /tmp/rtms
services:
# =============================================================================
# Build Service - Universal build environment with Task installed
# =============================================================================
build:
<<: *base
build:
context: .
args:
TARGET: all # Install all dependencies
# Default command: run bash (for interactive use)
# Override with: docker compose run build task <command>
command: /bin/bash
# =============================================================================
# Test Services - Pre-configured for running tests
# =============================================================================
test-js:
<<: *base
build:
context: .
args:
TARGET: js
environment:
- GITHUB_TOKEN
command: sh -c "task setup && task build:js && npx jest tests/ts/"
test-py:
<<: *base
build:
context: .
args:
TARGET: py
command: sh -c "task build:py && pip install --find-links=dist/py rtms --quiet && pytest tests/py/test_rtms.py -v"
# =============================================================================
# Docs Service - Documentation generation
# =============================================================================
docs:
<<: *base
build:
context: .
args:
TARGET: all
environment:
- GITHUB_TOKEN
command: sh -c "npm install && task setup && task build:py && pip install dist/py/*.whl && task docs:all"
volumes:
- .:/tmp/rtms
- ./docs:/tmp/rtms/docs