(runtime *model.Runtime)
| 144 | } |
| 145 | |
| 146 | func startRuntime(runtime *model.Runtime) { |
| 147 | if err := runComposeCmdWithLog("up", runtime.GetComposePath(), runtime.GetLogPath()); err != nil { |
| 148 | runtime.Status = constant.StatusError |
| 149 | runtime.Message = err.Error() |
| 150 | _ = runtimeRepo.Save(runtime) |
| 151 | return |
| 152 | } |
| 153 | |
| 154 | if err := SyncRuntimeContainerStatus(runtime); err != nil { |
| 155 | runtime.Status = constant.StatusError |
| 156 | runtime.Message = err.Error() |
| 157 | _ = runtimeRepo.Save(runtime) |
| 158 | return |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | func reCreateRuntime(runtime *model.Runtime) { |
| 163 | var err error |
no test coverage detected