Merge pull request #1068 from nalind/default-store

libpod: set the default Store to match a Runtime
This commit is contained in:
Daniel J Walsh 2017-10-24 21:40:56 -07:00 committed by GitHub
commit 2f43183c35
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@ package libpod
import (
"sync"
is "github.com/containers/image/storage"
"github.com/containers/image/types"
"github.com/containers/storage"
"github.com/kubernetes-incubator/cri-o/server/apparmor"
@ -80,6 +81,7 @@ func NewRuntime(options ...RuntimeOption) (*Runtime, error) {
return nil, err
}
runtime.store = store
is.Transport.SetStore(store)
// Set up containers/image
runtime.imageContext = &types.SystemContext{

View file

@ -12,7 +12,7 @@ function teardown() {
run ${KPOD_BINARY} $KPOD_OPTIONS pull "$IMAGE"
echo "$output"
[ "$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"
[ "$status" -eq 0 ]
run ${KPOD_BINARY} $KPOD_OPTIONS rmi "$IMAGE" busybox:test