-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (51 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
53 lines (51 loc) · 1.52 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
version: "3.8"
services:
tp-cli:
build:
context: .
dockerfile: Dockerfile
image: tp-lib:latest
container_name: tp-lib-cli
volumes:
# Mount local data directory for input/output files
- ./data:/data:rw
# Example: Mount specific files
# - ./examples/gnss.csv:/data/input/gnss.csv:ro
# - ./examples/network.geojson:/data/input/network.geojson:ro
command: >
--gnss-file /data/gnss.csv
--crs EPSG:4326
--network-file /data/network.geojson
--output-format csv
# Redirect output to file
# stdin_open: true
# tty: true
environment:
# Enable debug logging
- RUST_LOG=info
# Optional: Resource limits
# deploy:
# resources:
# limits:
# cpus: '2'
# memory: 2G
# Test service - runs all tests
test:
build:
context: .
dockerfile: Dockerfile.test
image: tp-lib-test:latest
container_name: tp-lib-test
volumes:
# Mount source for live testing during development
- ./tp-core:/workspace/tp-core:ro
- ./tp-cli:/workspace/tp-cli:ro
- ./tp-py:/workspace/tp-py:ro
- ./Cargo.toml:/workspace/Cargo.toml:ro
- ./Cargo.lock:/workspace/Cargo.lock:ro
environment:
- RUST_BACKTRACE=1
- RUST_LOG=debug
command: cargo test --all-features --workspace --exclude tp-py -- --nocapture
# Override for specific tests:
# command: cargo test --all-features crs_transform -- --nocapture