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>
16 lines
373 B
Go
16 lines
373 B
Go
// +build !windows
|
|
|
|
package main
|
|
|
|
const (
|
|
// identifies if test suite is running on a unix platform
|
|
isUnixCli = true
|
|
|
|
expectedFileChmod = "-rw-r--r--"
|
|
|
|
// On Unix variants, the busybox image comes with the `top` command which
|
|
// runs indefinitely while still being interruptible by a signal.
|
|
defaultSleepImage = "busybox"
|
|
)
|
|
|
|
var defaultSleepCommand = []string{"top"}
|