Merge pull request #1068 from nalind/default-store
libpod: set the default Store to match a Runtime
This commit is contained in:
commit
2f43183c35
2 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@ package libpod
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
is "github.com/containers/image/storage"
|
||||||
"github.com/containers/image/types"
|
"github.com/containers/image/types"
|
||||||
"github.com/containers/storage"
|
"github.com/containers/storage"
|
||||||
"github.com/kubernetes-incubator/cri-o/server/apparmor"
|
"github.com/kubernetes-incubator/cri-o/server/apparmor"
|
||||||
|
@ -80,6 +81,7 @@ func NewRuntime(options ...RuntimeOption) (*Runtime, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
runtime.store = store
|
runtime.store = store
|
||||||
|
is.Transport.SetStore(store)
|
||||||
|
|
||||||
// Set up containers/image
|
// Set up containers/image
|
||||||
runtime.imageContext = &types.SystemContext{
|
runtime.imageContext = &types.SystemContext{
|
||||||
|
|
|
@ -12,7 +12,7 @@ function teardown() {
|
||||||
run ${KPOD_BINARY} $KPOD_OPTIONS pull "$IMAGE"
|
run ${KPOD_BINARY} $KPOD_OPTIONS pull "$IMAGE"
|
||||||
echo "$output"
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
run ${KPOD_BINARY} $KPOD_OPTIONS push "$IMAGE" containers-storage:[${TESTDIR}/crio]busybox:test
|
run ${KPOD_BINARY} $KPOD_OPTIONS push "$IMAGE" containers-storage:busybox:test
|
||||||
echo "$output"
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
run ${KPOD_BINARY} $KPOD_OPTIONS rmi "$IMAGE" busybox:test
|
run ${KPOD_BINARY} $KPOD_OPTIONS rmi "$IMAGE" busybox:test
|
||||||
|
|
Loading…
Reference in a new issue