summaryrefslogtreecommitdiff
path: root/test/bin2img/bin2img.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-11 04:19:02 -0800
committerGitHub <noreply@github.com>2018-12-11 04:19:02 -0800
commite4e4fb741f874d788461acedb65e9a4e9dfe246c (patch)
tree47b3940dc4eaecca58260ce96bb397cd8f00c54f /test/bin2img/bin2img.go
parent235a6300744636f650728f2a7545243aed045c91 (diff)
parent22b1f7f8cbef429713c422e40a7a70af253d9e49 (diff)
downloadpodman-e4e4fb741f874d788461acedb65e9a4e9dfe246c.tar.gz
podman-e4e4fb741f874d788461acedb65e9a4e9dfe246c.tar.bz2
podman-e4e4fb741f874d788461acedb65e9a4e9dfe246c.zip
Merge pull request #1857 from mtrmac/blob-info-caching
Vendor c/image + Buildah after merging blob-info-caching in both
Diffstat (limited to 'test/bin2img/bin2img.go')
-rw-r--r--test/bin2img/bin2img.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/bin2img/bin2img.go b/test/bin2img/bin2img.go
index 644832c77..ed493dcc1 100644
--- a/test/bin2img/bin2img.go
+++ b/test/bin2img/bin2img.go
@@ -9,6 +9,7 @@ import (
"os"
"runtime"
+ "github.com/containers/image/pkg/blobinfocache"
"github.com/containers/image/storage"
"github.com/containers/image/types"
sstorage "github.com/containers/storage"
@@ -156,7 +157,7 @@ func main() {
os.Exit(1)
}
defer img.Close()
- layer, err := img.PutBlob(ctx, layerBuffer, layerInfo, false)
+ layer, err := img.PutBlob(ctx, layerBuffer, layerInfo, blobinfocache.NewMemoryCache(), false)
if err != nil {
logrus.Errorf("error preparing to write image: %v", err)
os.Exit(1)
@@ -184,7 +185,7 @@ func main() {
Digest: digest.Canonical.FromBytes(cbytes),
Size: int64(len(cbytes)),
}
- configInfo, err = img.PutBlob(ctx, bytes.NewBuffer(cbytes), configInfo, false)
+ configInfo, err = img.PutBlob(ctx, bytes.NewBuffer(cbytes), configInfo, blobinfocache.NewMemoryCache(), false)
if err != nil {
logrus.Errorf("error saving configuration: %v", err)
os.Exit(1)