-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (99 loc) · 2.86 KB
/
Copy pathdocker-compose.yml
File metadata and controls
110 lines (99 loc) · 2.86 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
# version: "3.8"
x-momanim_base: &momanim_base
working_dir: /home/mojo_user/momanim
logging:
driver: json-file
options:
max-size: 50m
stdin_open: true
tty: true
shm_size: 16000000000
ports:
- "5911:5911"
volumes:
- .:/home/mojo_user/momanim/
- ~/.ssh:/home/mojo_user/.ssh:rw
environment:
PIXI_ENVIRONMENT_NAME: ${PIXI_ENVIRONMENT_NAME:-default}
CONFIGURE_LIBOPENH264: ${CONFIGURE_LIBOPENH264:-false}
CONDA_TOKEN: ${CONDA_TOKEN:-invalid}
services:
momanim_build_x86_64:
build:
dockerfile: momanim.Dockerfile
context: .
args:
- BASE_IMAGE=ubuntu:22.04
# cache_from:
# - josiahls/momanim-x86_64-cpu:${VERSION:-latest}
image: josiahls/momanim-x86_64-cpu:${VERSION:-latest}
profiles: ["build_cpu_x86_64"]
platform: linux/amd64
momanim_build_arm64:
build:
dockerfile: momanim.Dockerfile
context: .
args:
- BASE_IMAGE=arm64v8/ubuntu:22.04
# cache_from:
# - josiahls/momanim-arm64-cpu:${VERSION:-latest}
image: josiahls/momanim-arm64-cpu:${VERSION:-latest}
profiles: ["build_cpu_arm64"]
platform: linux/arm64
momanim_build_gpu_x86_64:
build:
dockerfile: momanim.Dockerfile
context: .
args:
- BASE_IMAGE=nvidia/cuda:12.0.0-devel-ubuntu22.04
# cache_from:
# - josiahls/momanim-x86_64-gpu:${VERSION:-latest}
image: josiahls/momanim-x86_64-gpu:${VERSION:-latest}
profiles: ["build_gpu_x86_64"]
platform: linux/amd64
#trigger
momanim_build_gpu_arm64:
build:
dockerfile: momanim.Dockerfile
context: .
args:
- BASE_IMAGE=nvidia/cuda:12.0.0-devel-ubuntu22.04
# cache_from:
# - josiahls/momanim-arm64-gpu:${VERSION:-latest}
image: josiahls/momanim-arm64-gpu:${VERSION:-latest}
profiles: ["build_gpu_arm64"]
platform: linux/arm64
momanim_cpu_arm64: &momanim_cpu_arm64
<<: *momanim_base
profiles: ["cpu_arm64"]
restart: unless-stopped
platform: linux/arm64
image: josiahls/momanim-arm64-cpu:${VERSION:-latest}
momanim_gpu_arm64: &momanim_gpu_arm64
<<: *momanim_cpu_arm64
profiles: ["gpu_arm64"]
image: josiahls/momanim-arm64-gpu:${VERSION:-latest}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
momanim_cpu_x86_64: &momanim_cpu_x86_64
<<: *momanim_base
profiles: ["cpu_x86_64"]
restart: unless-stopped
platform: linux/amd64
image: josiahls/momanim-x86_64-cpu:${VERSION:-latest}
momanim_gpu_x86_64: &momanim_gpu_x86_64
<<: *momanim_cpu_x86_64
profiles: ["gpu_x86_64"]
image: josiahls/momanim-x86_64-gpu:${VERSION:-latest}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]