浏览代码

Merge pull request #4650 from vbatts/vbatts-btrfs_build_tags

btrfs: build tags
Victor Vieux 11 年之前
父节点
当前提交
c584910b55
共有 3 个文件被更改,包括 17 次插入3 次删除
  1. 10 2
      hack/PACKAGERS.md
  2. 0 1
      runtime/runtime.go
  3. 7 0
      runtime/runtime_btrfs.go

+ 10 - 2
hack/PACKAGERS.md

@@ -160,15 +160,23 @@ export DOCKER_BUILDTAGS='apparmor'
 There are build tags for disabling graphdrivers as well. By default, support
 There are build tags for disabling graphdrivers as well. By default, support
 for all graphdrivers are built in.
 for all graphdrivers are built in.
 
 
-To disable devicemapper
+To disable btrfs:
+```bash
+export DOCKER_BUILDTAGS='exclude_graphdriver_btrfs'
+```
+
+To disable devicemapper:
 ```bash
 ```bash
 export DOCKER_BUILDTAGS='exclude_graphdriver_devicemapper'
 export DOCKER_BUILDTAGS='exclude_graphdriver_devicemapper'
 ```
 ```
-To disable aufs
+
+To disable aufs:
 ```bash
 ```bash
 export DOCKER_BUILDTAGS='exclude_graphdriver_aufs'
 export DOCKER_BUILDTAGS='exclude_graphdriver_aufs'
 ```
 ```
 
 
+NOTE: if you need to set more than one build tag, space separate them.
+
 ### Static Daemon
 ### Static Daemon
 
 
 If it is feasible within the constraints of your distribution, you should
 If it is feasible within the constraints of your distribution, you should

+ 0 - 1
runtime/runtime.go

@@ -16,7 +16,6 @@ import (
 	"github.com/dotcloud/docker/runtime/execdriver/execdrivers"
 	"github.com/dotcloud/docker/runtime/execdriver/execdrivers"
 	"github.com/dotcloud/docker/runtime/execdriver/lxc"
 	"github.com/dotcloud/docker/runtime/execdriver/lxc"
 	"github.com/dotcloud/docker/runtime/graphdriver"
 	"github.com/dotcloud/docker/runtime/graphdriver"
-	_ "github.com/dotcloud/docker/runtime/graphdriver/btrfs"
 	_ "github.com/dotcloud/docker/runtime/graphdriver/vfs"
 	_ "github.com/dotcloud/docker/runtime/graphdriver/vfs"
 	_ "github.com/dotcloud/docker/runtime/networkdriver/lxc"
 	_ "github.com/dotcloud/docker/runtime/networkdriver/lxc"
 	"github.com/dotcloud/docker/runtime/networkdriver/portallocator"
 	"github.com/dotcloud/docker/runtime/networkdriver/portallocator"

+ 7 - 0
runtime/runtime_btrfs.go

@@ -0,0 +1,7 @@
+// +build !exclude_graphdriver_btrfs
+
+package runtime
+
+import (
+	_ "github.com/dotcloud/docker/runtime/graphdriver/btrfs"
+)