forked from kernelci/kernelci-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
163 lines (149 loc) · 4.97 KB
/
docker-compose.yaml
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2021, 2022 Collabora Limited
# Author: Guillaume Tucker <[email protected]>
# Author: Jeny Sadadia <[email protected]>
version: '3'
services:
monitor: &base-service
container_name: 'kernelci-pipeline-monitor'
# ToDo: '${DOCKER_BASE:-kernelci/staging-}kernelci'
image: 'gtucker/kernelci'
env_file: ['.env']
stop_signal: 'SIGINT'
command:
- './pipeline/monitor.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'run'
volumes: &base-volumes
- './src:/home/kernelci/pipeline'
- './config:/home/kernelci/config'
- './data/output:/home/kernelci/data/output'
scheduler: &scheduler
container_name: 'kernelci-pipeline-scheduler'
image: 'gtucker/kernelci'
env_file: ['.env']
stop_signal: 'SIGINT'
command:
- './pipeline/scheduler.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'loop'
- '--runtimes=shell'
volumes:
- './src:/home/kernelci/pipeline'
- './config:/home/kernelci/config'
- './data/output:/home/kernelci/data/output'
- './data/ssh:/home/kernelci/data/ssh'
scheduler-docker:
<<: *scheduler
container_name: 'kernelci-pipeline-scheduler-docker'
user: root # Docker-in-Docker
working_dir: /home/kernelci
command:
- './pipeline/scheduler.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'loop'
- '--runtimes=docker'
volumes:
- './src:/home/kernelci/pipeline'
- './config:/home/kernelci/config'
- './data/output:/home/kernelci/data/output'
- './.docker-env:/home/kernelci/.docker-env'
- '/var/run/docker.sock:/var/run/docker.sock' # Docker-in-Docker
scheduler-lava:
<<: *scheduler
container_name: 'kernelci-pipeline-scheduler-lava'
command:
- './pipeline/scheduler.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.conf}'
- 'loop'
- '--runtimes=lava-collabora'
scheduler-k8s:
<<: *scheduler
container_name: 'kernelci-pipeline-scheduler-k8s'
image: 'gtucker/k8s:kernelci'
command:
- './pipeline/scheduler.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'loop'
- '--runtimes=k8s-gke-eu-west4'
volumes:
- './src:/home/kernelci/pipeline'
- './config:/home/kernelci/config'
- './data/output:/home/kernelci/data/output'
- './data/k8s-credentials/.kube:/home/kernelci/.kube'
- './data/k8s-credentials/.config/gcloud:/home/kernelci/.config/gcloud'
- './data/k8s-credentials/.azure:/home/kernelci/.azure'
tarball:
<<: *base-service
container_name: 'kernelci-pipeline-tarball'
command:
- './pipeline/tarball.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'run'
volumes:
- './src:/home/kernelci/pipeline'
- './config:/home/kernelci/config'
- './data/ssh:/home/kernelci/data/ssh'
- './data/src:/home/kernelci/data/src'
- './data/output:/home/kernelci/data/output'
- '/home/gtucker/src/linux:/home/kernelci/linux'
trigger:
<<: *base-service
container_name: 'kernelci-pipeline-trigger'
command:
- './pipeline/trigger.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'run'
volumes:
- './src:/home/kernelci/pipeline'
- './config:/home/kernelci/config'
- '/home/gtucker/src/linux:/home/kernelci/linux'
regression_tracker:
<<: *base-service
container_name: 'kernelci-pipeline-regression_tracker'
command:
- '/usr/bin/env'
- 'python3'
- '/home/kernelci/pipeline/regression_tracker.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'run'
test_report:
<<: *base-service
container_name: 'kernelci-pipeline-test_report'
command:
- '/usr/bin/env'
- 'python3'
- '/home/kernelci/pipeline/test_report.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'loop'
timeout:
<<: *base-service
container_name: 'kernelci-pipeline-timeout'
command:
- '/usr/bin/env'
- 'python3'
- '/home/kernelci/pipeline/timeout.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'run'
- '--mode=timeout'
timeout-closing:
<<: *base-service
container_name: 'kernelci-pipeline-closing'
command:
- '/usr/bin/env'
- 'python3'
- '/home/kernelci/pipeline/timeout.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'run'
- '--mode=closing'
timeout-holdoff:
<<: *base-service
container_name: 'kernelci-pipeline-holdoff'
command:
- '/usr/bin/env'
- 'python3'
- '/home/kernelci/pipeline/timeout.py'
- '--settings=${KCI_SETTINGS:-/home/kernelci/config/kernelci.toml}'
- 'run'
- '--mode=holdoff'