MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Up

Function Up

agent/utils/compose/compose.go:41–49  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

39}
40
41func Up(filePath string) (string, error) {
42 if err := checkCmd(); err != nil {
43 return "", err
44 }
45 base, extra := getComposeBaseCmd()
46 args := append(extra, loadFiles(filePath)...)
47 args = append(args, "up", "-d")
48 return cmd.NewCommandMgr(cmd.WithTimeout(20*time.Minute)).RunWithStdout(base, args...)
49}
50
51func UpWithTask(filePath string, task *task.Task, forcePull bool) error {
52 if err := pullComposeImages(filePath, forcePull, task); err != nil {

Callers

nothing calls this directly

Calls 4

checkCmdFunction · 0.85
getComposeBaseCmdFunction · 0.85
loadFilesFunction · 0.85
RunWithStdoutMethod · 0.45

Tested by

no test coverage detected