fix: add some comments
This commit is contained in:
1 parent
94696e81fa
commit
d6acf5530e
3 files changed
+3
-2
No files matched your search
@@ -244,7 +244,7 @@ func DockerInspect(containerOrImageID, format string) (output string, err error)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// DockerInspect runs an inspect command with a given format against a container ID
|
// DockerSignal sends a given signal (in string form) to a docker container
|
||||||
func DockerSignal(containerID, signal string) (err error) {
|
func DockerSignal(containerID, signal string) (err error) {
|
||||||
return sh.Command(DockerBin(), "kill", fmt.Sprintf("--signal=%s", signal), containerID).Run()
|
return sh.Command(DockerBin(), "kill", fmt.Sprintf("--signal=%s", signal), containerID).Run()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ func LogVerboseQuietContainerLogs(containerID string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LogVerboseQuietContainerLogs is the verbose log formatter for container logs
|
// LogVerboseQuietContainerLogsTail is the verbose log formatter for container logs with tail mode enabled
|
||||||
func LogVerboseQuietContainerLogsTail(containerID string) {
|
func LogVerboseQuietContainerLogsTail(containerID string) {
|
||||||
sc := NewShellCmdWithArgs(DockerBin(), "container", "logs", containerID, "--follow", "--tail", "10")
|
sc := NewShellCmdWithArgs(DockerBin(), "container", "logs", containerID, "--follow", "--tail", "10")
|
||||||
stdout, _ := sc.Command.StdoutPipe()
|
stdout, _ := sc.Command.StdoutPipe()
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ var (
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// VectorImage contains the default vector image to run
|
||||||
const VectorImage = "timberio/vector:0.11.X-debian"
|
const VectorImage = "timberio/vector:0.11.X-debian"
|
||||||
|
|
||||||
// GetFailedLogs outputs failed deploy logs for a given app
|
// GetFailedLogs outputs failed deploy logs for a given app
|
||||||
|
|||||||
Reference in new issue
Block a user