Add resolv.conf and networking hooks

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd)
2019-12-20 17:48:41 +00:00
parent 5c45242b3d
commit a0e7f88125
3 changed files with 168 additions and 9 deletions

View File

@ -20,14 +20,27 @@ func runUp(_ *cobra.Command, _ []string) error {
pkg.Service{
Name: "faas-containerd",
Env: []string{},
Image: "docker.io/functions/figlet:latest",
Image: "docker.io/alexellis2/faas-containerd:0.2.0",
Mounts: []pkg.Mount{
pkg.Mount{
Src: "/run/containerd/containerd.sock",
Dest: "/run/containerd/containerd.sock",
},
},
}}
},
pkg.Service{
Name: "gateway",
Env: []string{},
Image: "docker.io/openfaas/gateway:0.18.7",
Mounts: []pkg.Mount{},
},
pkg.Service{
Name: "prometheus",
Env: []string{},
Image: "docker.io/prom/prometheus:v2.14.0",
Mounts: []pkg.Mount{},
},
}
start := time.Now()
supervisor, err := pkg.NewSupervisor("/run/containerd/containerd.sock")