Skip to content

Commit

Permalink
Add containerd-based graphdriver leveraging additional stores
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Tokunaga <[email protected]>
  • Loading branch information
ktock committed Jun 29, 2020
1 parent 56035c0 commit f98ab81
Show file tree
Hide file tree
Showing 621 changed files with 209,674 additions and 234 deletions.
993 changes: 993 additions & 0 deletions drivers/containerd/containerd.go

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions drivers/register/register_containerd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// +build !exclude_graphdriver_containerd,linux

package register

import (
// register the containerd graphdriver
_ "github.com/containers/storage/drivers/containerd"
)
14 changes: 12 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ require (
github.com/BurntSushi/toml v0.3.1
github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5
github.com/Microsoft/hcsshim v0.8.9
github.com/containerd/cgroups v0.0.0-20200609174450-80c669f4bad0 // indirect
github.com/containerd/containerd v1.4.0-beta.1.0.20200604173407-38cb1c1a54e3
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
github.com/docker/go-units v0.4.0
github.com/gogo/googleapis v1.4.0 // indirect
github.com/google/uuid v1.1.1 // indirect
github.com/hashicorp/go-multierror v1.1.0
github.com/imdario/mergo v0.3.9 // indirect
github.com/klauspost/compress v1.10.10
github.com/klauspost/pgzip v1.2.4
github.com/mattn/go-shellwords v1.0.10
github.com/mistifyio/go-zfs v2.1.1+incompatible
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.0.1
github.com/opencontainers/runc v1.0.0-rc90
github.com/opencontainers/runtime-spec v0.1.2-0.20190507144316-5b71a03e2700
github.com/opencontainers/runtime-spec v1.0.2
github.com/opencontainers/selinux v1.5.2
github.com/pkg/errors v0.9.1
github.com/pquerna/ffjson v0.0.0-20181028064349-e517b90714f7
Expand All @@ -21,9 +28,12 @@ require (
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2
github.com/tchap/go-patricia v2.3.0+incompatible
github.com/vbatts/tar-split v0.11.1
go.etcd.io/bbolt v1.3.4 // indirect
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5
google.golang.org/grpc v1.29.1 // indirect
gotest.tools v2.2.0+incompatible
gotest.tools/v3 v3.0.2 // indirect
)

go 1.13
62 changes: 60 additions & 2 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/lockfile/lockfile_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type lockfile struct {
// necessary.
func openLock(path string, ro bool) (int, error) {
if ro {
return unix.Open(path, os.O_RDONLY|unix.O_CLOEXEC, 0)
return unix.Open(path, os.O_RDONLY|unix.O_CLOEXEC|os.O_CREATE, 0)
}
return unix.Open(path, os.O_RDWR|unix.O_CLOEXEC|os.O_CREATE, unix.S_IRUSR|unix.S_IWUSR|unix.S_IRGRP|unix.S_IROTH)
}
Expand Down
584 changes: 465 additions & 119 deletions vendor/github.com/containerd/cgroups/stats/v1/metrics.pb.go

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions vendor/github.com/containerd/cgroups/stats/v1/metrics.pb.txt

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

15 changes: 15 additions & 0 deletions vendor/github.com/containerd/cgroups/stats/v1/metrics.proto

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

7 changes: 7 additions & 0 deletions vendor/github.com/containerd/containerd/.gitignore

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

23 changes: 23 additions & 0 deletions vendor/github.com/containerd/containerd/.golangci.yml

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

99 changes: 99 additions & 0 deletions vendor/github.com/containerd/containerd/.mailmap

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

123 changes: 123 additions & 0 deletions vendor/github.com/containerd/containerd/.travis.yml

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

Loading

0 comments on commit f98ab81

Please sign in to comment.