mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
777ee34b07
Add `runSleepingContainer` and `runSleepingContainerInImage` helper functions to factor out the way to run system-specific idle containers. Define a sleeping container as command `top` in image `busybox` for Unix and as command `sleep 60` in image `busybox` for Windows. Provide a single point of code to update those. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
17 lines
419 B
Go
17 lines
419 B
Go
// +build windows
|
|
|
|
package main
|
|
|
|
const (
|
|
// identifies if test suite is running on a unix platform
|
|
isUnixCli = false
|
|
|
|
// this is the expected file permission set on windows: gh#11395
|
|
expectedFileChmod = "-rwxr-xr-x"
|
|
|
|
// On Windows, the busybox image doesn't have the `top` command, so we rely
|
|
// on `sleep` with a high duration.
|
|
defaultSleepImage = "busybox"
|
|
)
|
|
|
|
var defaultSleepCommand = []string{"sleep", "60"}
|