mirror of
https://github.com/rancher/os.git
synced 2025-08-14 21:15:15 +00:00
Fix autoformat
This commit is contained in:
parent
72992492bc
commit
9116652561
@ -56,15 +56,28 @@ outer:
|
|||||||
|
|
||||||
if format != "" {
|
if format != "" {
|
||||||
log.Infof("Auto formatting : %s", format)
|
log.Infof("Auto formatting : %s", format)
|
||||||
return docker.RunServices("autoformat", cfg, map[string]*project.ServiceConfig{
|
|
||||||
|
// copy
|
||||||
|
udev := *cfg.BootstrapContainers["udev"]
|
||||||
|
udev.Links = append(udev.Links, "autoformat")
|
||||||
|
udev.LogDriver = "json-file"
|
||||||
|
|
||||||
|
err := docker.RunServices("autoformat", cfg, map[string]*project.ServiceConfig{
|
||||||
"autoformat": {
|
"autoformat": {
|
||||||
Net: "none",
|
Net: "none",
|
||||||
Privileged: true,
|
Privileged: true,
|
||||||
Image: "autoformat",
|
Image: "autoformat",
|
||||||
Command: format,
|
Command: format,
|
||||||
|
Labels: []string{
|
||||||
|
config.DETACH + "=false",
|
||||||
|
config.SCOPE + "=" + config.SYSTEM,
|
||||||
|
},
|
||||||
|
LogDriver: "json-file",
|
||||||
},
|
},
|
||||||
"udev": cfg.BootstrapContainers["udev"],
|
"udev": &udev,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user