projects
/
arvados.git
/ blob
4b3e249ac582083bb7be64818337eb5449202db5
[arvados.git]
/
services
/
boot
/
controller.go
1
package main
2
3
import (
4
"context"
5
"path"
6
)
7
8
type controller struct{}
9
10
func (c *controller) Boot(ctx context.Context) error {
11
cfg := cfg(ctx)
12
return Series{
13
cfg,
14
Concurrent{
15
installCerts,
16
arvadosRepo,
17
},
18
Concurrent{
19
postgresql,
20
Concurrent{
21
&download{
22
URL: "https://releases.hashicorp.com/consul-template/0.18.0/consul-template_0.18.0_linux_amd64.zip",
23
Dest: path.Join(cfg.UsrDir, "bin", "consul-template"),
24
Size: 6912352,
25
Mode: 0755,
26
},
27
consul,
28
},
29
Concurrent{
30
vault,
31
nomad,
32
},
33
},
34
// Concurrent{
35
// dispatchLocal,
36
// dispatchSLURM,
37
// gitHTTP,
38
// keepbalance,
39
// keepproxy,
40
// keepstore,
41
// websocket,
42
// },
43
}.Boot(ctx)
44
}