support building with BUILDTAGS="no_zfs no_aufs"
These plugins do not always need to be built-in. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
3fe22817ab
commit
8e685f78cf
21
cmd/containerd/builtins_aufs_linux.go
Normal file
21
cmd/containerd/builtins_aufs_linux.go
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
// +build !no_aufs
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright The containerd Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import _ "github.com/containerd/aufs"
|
@ -17,7 +17,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/containerd/aufs"
|
|
||||||
_ "github.com/containerd/containerd/metrics/cgroups"
|
_ "github.com/containerd/containerd/metrics/cgroups"
|
||||||
_ "github.com/containerd/containerd/metrics/cgroups/v2"
|
_ "github.com/containerd/containerd/metrics/cgroups/v2"
|
||||||
_ "github.com/containerd/containerd/runtime/v1/linux"
|
_ "github.com/containerd/containerd/runtime/v1/linux"
|
||||||
@ -25,5 +24,4 @@ import (
|
|||||||
_ "github.com/containerd/containerd/runtime/v2/runc/options"
|
_ "github.com/containerd/containerd/runtime/v2/runc/options"
|
||||||
_ "github.com/containerd/containerd/snapshots/native"
|
_ "github.com/containerd/containerd/snapshots/native"
|
||||||
_ "github.com/containerd/containerd/snapshots/overlay"
|
_ "github.com/containerd/containerd/snapshots/overlay"
|
||||||
_ "github.com/containerd/zfs"
|
|
||||||
)
|
)
|
||||||
|
21
cmd/containerd/builtins_zfs_linux.go
Normal file
21
cmd/containerd/builtins_zfs_linux.go
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
// +build !no_zfs
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright The containerd Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import _ "github.com/containerd/zfs"
|
Loading…
Reference in New Issue
Block a user