-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (82 loc) · 2.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (82 loc) · 2.39 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
80
81
82
83
84
85
86
services:
# Development environment for PicoForge
pico-forge-dev:
build:
context: .
dockerfile: docker/Dockerfile.dev
container_name: picoforge-dev
volumes:
# Mount source code for live development
- ./pico-forge:/workspace/pico-forge
- ./workspace:/workspace/projects
# Cache build artifacts
- picoforge-build-cache:/workspace/pico-forge/build
working_dir: /workspace/pico-forge
environment:
- CMAKE_BUILD_TYPE=Debug
- FIXTURES_PATH=/workspace/pico-forge/tests/fixtures
command: /bin/bash -c "tail -f /dev/null"
stdin_open: true
tty: true
# Test runner service
pico-forge-test:
build:
context: .
dockerfile: docker/Dockerfile.dev
container_name: picoforge-test
volumes:
- ./pico-forge:/workspace/pico-forge
- picoforge-test-cache:/workspace/pico-forge/build
working_dir: /workspace/pico-forge
environment:
- CMAKE_BUILD_TYPE=Debug
- FIXTURES_PATH=/workspace/pico-forge/tests/fixtures
entrypoint: [ "/bin/bash", "-c" ]
command:
- |
echo 'Building PicoForge...' &&
mkdir -p build && cd build &&
cmake .. -DCMAKE_BUILD_TYPE=Debug &&
make -j$$(nproc) &&
echo '' &&
echo '========================================' &&
echo 'Running Unit Tests' &&
echo '========================================' &&
./pico-forge-tests &&
echo '' &&
echo '========================================' &&
echo 'Running Integration Tests' &&
echo '========================================' &&
./pico-forge-integration-tests &&
echo '' &&
echo '✅ All tests passed!'
# Backend API
backend:
build:
context: ./web/backend
dockerfile: Dockerfile
container_name: picoforge-backend
volumes:
- ./workspace:/app/workspace
- /var/run/docker.sock:/var/run/docker.sock
- ./web/backend:/app
environment:
- NODE_ENV=development
- PORT=3000
- WORKSPACE_PATH=/app/workspace
- HOST_WORKSPACE_PATH=d:/apps/picoforge/workspace
depends_on:
- pico-forge-dev
# Frontend UI
frontend:
build:
context: ./web/frontend
dockerfile: Dockerfile
container_name: picoforge-frontend
ports:
- "8080:80"
depends_on:
- backend
volumes:
picoforge-build-cache:
picoforge-test-cache: