Skip to content

Commit

Permalink
Bump github.com/containerd/stargz-snapshotter to v0.2.0
Browse files Browse the repository at this point in the history
This enables BuildKit to lazily pull eStargz with new footer format.

Signed-off-by: ktock <[email protected]>
  • Loading branch information
ktock committed Dec 9, 2020
1 parent 8c7c526 commit 1709c01
Show file tree
Hide file tree
Showing 38 changed files with 2,439 additions and 595 deletions.
10 changes: 5 additions & 5 deletions cmd/buildkitd/main_oci_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
snproxy "github.com/containerd/containerd/snapshots/proxy"
"github.com/containerd/containerd/sys"
remotesn "github.com/containerd/stargz-snapshotter/snapshot"
"github.com/containerd/stargz-snapshotter/stargz"
sgzconf "github.com/containerd/stargz-snapshotter/stargz/config"
sgzsource "github.com/containerd/stargz-snapshotter/stargz/source"
sgzfs "github.com/containerd/stargz-snapshotter/fs"
sgzconf "github.com/containerd/stargz-snapshotter/fs/config"
sgzsource "github.com/containerd/stargz-snapshotter/fs/source"
"github.com/moby/buildkit/cmd/buildkitd/config"
"github.com/moby/buildkit/executor/oci"
"github.com/moby/buildkit/util/network/cniprovider"
Expand Down Expand Up @@ -377,9 +377,9 @@ func snapshotterFactory(commonRoot string, cfg config.OCIConfig, hosts docker.Re
}
}
snFactory.New = func(root string) (ctdsnapshot.Snapshotter, error) {
fs, err := stargz.NewFilesystem(filepath.Join(root, "stargz"),
fs, err := sgzfs.NewFilesystem(filepath.Join(root, "stargz"),
sgzCfg,
stargz.WithGetSources(
sgzfs.WithGetSources(
// provides source info based on the registry config and
// default labels.
sgzsource.FromDefaultLabels(sgzhosts),
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/containerd/continuity v0.0.0-20200710164510-efbc4488d8fe
github.com/containerd/go-cni v1.0.1
github.com/containerd/go-runc v0.0.0-20201020171139-16b287bc67d0
github.com/containerd/stargz-snapshotter v0.0.0-20201027054423-3a04e4c2c116
github.com/containerd/stargz-snapshotter v0.2.0
github.com/containerd/typeurl v1.0.1
github.com/coreos/go-systemd/v22 v22.1.0
github.com/docker/cli v20.10.0-beta1.0.20201029214301-1d20b15adc38+incompatible
Expand Down
180 changes: 30 additions & 150 deletions go.sum

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions vendor/github.com/containerd/fifo/fifo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1709c01

Please sign in to comment.