mirror of https://github.com/docker/docs.git
tests: Store the loopback images for test outside unit-tests
This directory is copied to each test prefix which is really slow with the large loopback mounts.
This commit is contained in:
parent
76a2ab6e34
commit
7fb60caa5d
|
|
@ -23,6 +23,7 @@ const (
|
||||||
unitTestImageID = "83599e29c455eb719f77d799bc7c51521b9551972f5a850d7ad265bc1b5292f6" // 1.0
|
unitTestImageID = "83599e29c455eb719f77d799bc7c51521b9551972f5a850d7ad265bc1b5292f6" // 1.0
|
||||||
unitTestNetworkBridge = "testdockbr0"
|
unitTestNetworkBridge = "testdockbr0"
|
||||||
unitTestStoreBase = "/var/lib/docker/unit-tests"
|
unitTestStoreBase = "/var/lib/docker/unit-tests"
|
||||||
|
unitTestStoreDevicesBase = "/var/lib/docker/unit-tests-devices"
|
||||||
testDaemonAddr = "127.0.0.1:4270"
|
testDaemonAddr = "127.0.0.1:4270"
|
||||||
testDaemonProto = "tcp"
|
testDaemonProto = "tcp"
|
||||||
)
|
)
|
||||||
|
|
@ -88,7 +89,7 @@ func init() {
|
||||||
NetworkBridgeIface = unitTestNetworkBridge
|
NetworkBridgeIface = unitTestNetworkBridge
|
||||||
|
|
||||||
// Make it our Store root
|
// Make it our Store root
|
||||||
if runtime, err := NewRuntimeFromDirectory(unitTestStoreBase, devmapper.NewDeviceSetDM(unitTestStoreBase), false); err != nil {
|
if runtime, err := NewRuntimeFromDirectory(unitTestStoreBase, devmapper.NewDeviceSetDM(unitTestStoreDevicesBase), false); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
} else {
|
} else {
|
||||||
globalRuntime = runtime
|
globalRuntime = runtime
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue