-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
103 lines (94 loc) · 2.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
103 lines (94 loc) · 2.63 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
x-node-common: &node-common
image: ghcr.io/noaa-gsl/dockerspackstackpbscluster/pbs-spack-stack-mom:ubuntu-${UBUNTU_VERSION:-26.04}-spack-stack-${SPACK_STACK_VERSION:-2.1.0}
shm_size: '4g'
user: admin
volumes:
- home-vol:/home/admin
- opt-vol:/opt/spack-stack:ro
depends_on:
pbsserver:
condition: service_started
pbsfrontend:
condition: service_healthy
healthcheck:
test: ["CMD", "ssh", "-o", "StrictHostKeyChecking=no", "admin@localhost", "hostname"]
interval: 10s
timeout: 5s
retries: 5
services:
pbsfrontend:
build:
context: ./frontend
args:
SPACK_BUILD_JOBS: 8
BASE_IMAGE_TAG: ubuntu-${UBUNTU_VERSION:-26.04}-openpbs-${OPENPBS_VERSION}
UBUNTU_VERSION: ${UBUNTU_VERSION:-26.04}
SPACK_STACK_VERSION: ${SPACK_STACK_VERSION:-2.1.0}
secrets:
- github_token
image: ghcr.io/noaa-gsl/dockerspackstackpbscluster/pbs-spack-stack-frontend:ubuntu-${UBUNTU_VERSION:-26.04}-spack-stack-${SPACK_STACK_VERSION:-2.1.0}
container_name: spack-stack-frontend
shm_size: '4g'
hostname: pbsfrontend
user: admin
volumes:
- home-vol:/home/admin
- opt-vol:/opt/spack-stack
ports:
- 8888:8888
healthcheck:
test: ["CMD", "test", "-f", "/tmp/ssh-ready"]
interval: 5s
timeout: 2s
retries: 250
start_period: 60s
pbsserver:
build:
context: ./server
args:
BASE_IMAGE_TAG: ubuntu-${UBUNTU_VERSION:-26.04}-openpbs-${OPENPBS_VERSION}
image: ghcr.io/noaa-gsl/dockerspackstackpbscluster/pbs-spack-stack-server:ubuntu-${UBUNTU_VERSION:-26.04}-spack-stack-${SPACK_STACK_VERSION:-2.1.0}
container_name: spack-stack-server
shm_size: '4g'
hostname: pbsserver
user: admin
volumes:
- home-vol:/home/admin
- opt-vol:/opt/spack-stack:ro
ports:
- 15001:15001
- 15003:15003
- 17001:17001
depends_on:
pbsfrontend:
condition: service_healthy
pbsnode1:
<<: *node-common
build:
context: ./mom
args:
BASE_IMAGE_TAG: ubuntu-${UBUNTU_VERSION:-26.04}-openpbs-${OPENPBS_VERSION}
container_name: spack-stack-node1
hostname: pbsnode1
pbsnode2:
<<: *node-common
container_name: spack-stack-node2
hostname: pbsnode2
pbsnode3:
<<: *node-common
container_name: spack-stack-node3
hostname: pbsnode3
pbsnode4:
<<: *node-common
container_name: spack-stack-node4
hostname: pbsnode4
pbsnode5:
<<: *node-common
container_name: spack-stack-node5
hostname: pbsnode5
volumes:
home-vol:
opt-vol:
secrets:
github_token:
environment: GITHUB_TOKEN