Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (100 loc) · 2.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
112 lines (100 loc) · 2.8 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# version: "3.8"
x-mav_base: &mav_base
working_dir: /home/mojo_user/mav
logging:
driver: json-file
options:
max-size: 50m
stdin_open: true
tty: true
shm_size: 16000000000
volumes:
- .:/home/mojo_user/mav/
- ~/.ssh:/home/mojo_user/.ssh:rw
- mav_vscode_data_cache:/home/mojo_user/.vscode-server/data/User/globalStorage:rw
environment:
PIXI_ENVIRONMENT_NAME: ${PIXI_ENVIRONMENT_NAME:-default}
CONDA_TOKEN: ${CONDA_TOKEN:-invalid}
CONFIGURE_LIBOPENH264: ${CONFIGURE_LIBOPENH264:-false}
volumes:
mav_vscode_data_cache:
external: false
services:
mav_build_x86_64:
build:
dockerfile: mav.Dockerfile
context: .
args:
- BASE_IMAGE=ubuntu:22.04
cache_from:
- josiahls/mav-x86_64-cpu:${VERSION:-latest}
image: josiahls/mav-x86_64-cpu:${VERSION:-latest}
profiles: ["build_cpu_x86_64"]
platform: linux/amd64
mav_build_arm64:
build:
dockerfile: mav.Dockerfile
context: .
args:
- BASE_IMAGE=arm64v8/ubuntu:22.04
cache_from:
- josiahls/mav-arm64-cpu:${VERSION:-latest}
image: josiahls/mav-arm64-cpu:${VERSION:-latest}
profiles: ["build_cpu_arm64"]
platform: linux/arm64
mav_build_gpu_x86_64:
build:
dockerfile: mav.Dockerfile
context: .
args:
- BASE_IMAGE=nvidia/cuda:12.0.0-devel-ubuntu22.04
cache_from:
- josiahls/mav-x86_64-gpu:${VERSION:-latest}
image: josiahls/mav-x86_64-gpu:${VERSION:-latest}
profiles: ["build_gpu_x86_64"]
platform: linux/amd64
mav_build_gpu_arm64:
build:
dockerfile: mav.Dockerfile
context: .
args:
- BASE_IMAGE=nvidia/cuda:12.0.0-devel-ubuntu22.04
cache_from:
- josiahls/mav-arm64-gpu:${VERSION:-latest}
image: josiahls/mav-arm64-gpu:${VERSION:-latest}
profiles: ["build_gpu_arm64"]
platform: linux/arm64
mav_cpu_arm64: &mav_cpu_arm64
<<: *mav_base
profiles: ["cpu_arm64"]
restart: unless-stopped
platform: linux/arm64
image: josiahls/mav-arm64-cpu:${VERSION:-latest}
mav_gpu_arm64: &mav_gpu_arm64
<<: *mav_cpu_arm64
profiles: ["gpu_arm64"]
image: josiahls/mav-arm64-gpu:${VERSION:-latest}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
mav_cpu_x86_64: &mav_cpu_x86_64
<<: *mav_base
profiles: ["cpu_x86_64"]
restart: unless-stopped
platform: linux/amd64
image: josiahls/mav-x86_64-cpu:${VERSION:-latest}
mav_gpu_x86_64: &mav_gpu_x86_64
<<: *mav_cpu_x86_64
profiles: ["gpu_x86_64"]
image: josiahls/mav-x86_64-gpu:${VERSION:-latest}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]