-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.slurm.yml
74 lines (70 loc) · 1.88 KB
/
docker-compose.slurm.yml
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
volumes:
accounting_data:
munge:
shared_tmp:
shared_jobs:
services:
backend:
build:
args:
- PRIOR_LAYER=backend-slurm
volumes:
- munge:/etc/munge/
- shared_tmp:/tmp/
- shared_jobs:/opt/shared-jobs/
master:
hostname: ${SLURM_MASTER}
privileged: true
cgroup: private
image: ${REGISTRY_PREFIX}/molevolvr-slurm-node:${IMAGE_TAG}
platform: linux/amd64
build:
context: ./cluster
cache_from:
- type=registry,ref=${REGISTRY_PREFIX}/molevolvr-slurm-node:${IMAGE_TAG}
cache_to:
- type=inline,ref=${REGISTRY_PREFIX}/molevolvr-slurm-node:${IMAGE_TAG},mode=max
environment:
- CLUSTER_ROLE=controller,dbd
env_file:
- .env
volumes:
- munge:/etc/munge/
- shared_tmp:/tmp/
- shared_jobs:/opt/shared-jobs/
- ./cluster/test-jobs/:/opt/test-jobs/
# - /sys/fs/cgroup:/sys/fs/cgroup
depends_on:
- accounting
worker:
hostname: ${SLURM_WORKER}
privileged: true
cgroup: private
image: ${REGISTRY_PREFIX}/molevolvr-slurm-node:${IMAGE_TAG}
platform: linux/amd64
build:
context: ./cluster
cache_from:
- type=registry,ref=${REGISTRY_PREFIX}/molevolvr-slurm-node:${IMAGE_TAG}
cache_to:
- type=inline,ref=${REGISTRY_PREFIX}/molevolvr-slurm-node:${IMAGE_TAG},mode=max
environment:
- CLUSTER_ROLE=worker
env_file:
- .env
volumes:
- munge:/etc/munge/
- shared_tmp:/tmp/
- shared_jobs:/opt/shared-jobs/
- ./cluster/test-jobs/:/opt/test-jobs/
# - /sys/fs/cgroup:/sys/fs/cgroup
# used by slurmdbd to store accounting information
accounting:
hostname: ${MARIADB_HOST}
image: mariadb:11.2
restart: unless-stopped
env_file:
- .env
volumes:
- "./services/mariadb/:/etc/mysql/mariadb.conf.d/:ro"
- accounting_data:/var/lib/mysql