1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 23:04:41 +00:00

isolate and mark platform dependent code

now unit tests compile on OS X and (some of them) work
This commit is contained in:
Ivan Mikushin
2015-07-13 19:14:24 +05:00
parent 9f935fc83d
commit ad832471a1
8 changed files with 93 additions and 50 deletions

View File

@@ -1,3 +1,5 @@
// +build linux
package init
import (
@@ -77,7 +79,7 @@ outer:
"autoformat": {
Net: "none",
Privileged: true,
Image: "rancher/os-autoformat:"+config.VERSION,
Image: "rancher/os-autoformat:" + config.VERSION,
Command: project.NewCommand(format),
Labels: project.NewSliceorMap(map[string]string{
config.DETACH: "false",