From fc3715e50bcb384276330bac0a3cb5efacdc8232 Mon Sep 17 00:00:00 2001 From: Alex Suraci Date: Mon, 24 Feb 2014 19:08:08 -0800 Subject: [PATCH] add --privileged to drone build command Signed-off-by: Alex Suraci --- cmd/drone/drone.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/drone/drone.go b/cmd/drone/drone.go index 91408f2b..ea5d9865 100644 --- a/cmd/drone/drone.go +++ b/cmd/drone/drone.go @@ -31,6 +31,9 @@ var ( // this will default to 500 minutes (6 hours) timeout = flag.Duration("timeout", 300*time.Minute, "") + // build will run in a privileged container + privileged = flag.Bool("privileged", false, "") + // runs Drone with verbose output if True verbose = flag.Bool("v", false, "") @@ -187,6 +190,7 @@ func run(path string) { builder.Key = key builder.Stdout = os.Stdout builder.Timeout = *timeout + builder.Privileged = *privileged if *parallel == true { var buf bytes.Buffer @@ -285,6 +289,7 @@ The commands are: -h display this help and exit --parallel runs drone build tasks in parallel --timeout=300ms timeout build after 300 milliseconds + --privileged runs drone build in a privileged container Examples: drone build builds the source in the pwd