aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Copeland <ben.copeland@linaro.org>2018-06-22 12:32:40 +0100
committerBenjamin Copeland <ben.copeland@linaro.org>2018-06-22 12:34:42 +0100
commit9b09f656cf01049254eea921274beafec8123f16 (patch)
treef5c9f3c14b253d7c21c88acaf5179a4fd53efbd5
parente60920b379e101f2884ff2d45db6eaa7b4688b8d (diff)
Groovy: Enable privileged flag by default
By default this flag was being set as false, since all our config uses it lets make the default True. If we want it to be False we can specify in yaml. Change-Id: I09a40b6943043558c5b64d97f688b27dd485a429
-rw-r--r--templates/configure-yadocker-cloud.groovy.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/configure-yadocker-cloud.groovy.j2 b/templates/configure-yadocker-cloud.groovy.j2
index 24c5961..417bea6 100644
--- a/templates/configure-yadocker-cloud.groovy.j2
+++ b/templates/configure-yadocker-cloud.groovy.j2
@@ -225,7 +225,7 @@ def newDockerSlaveTemplate(JSONObject obj) {
if(obj.optLong('memory_limit_in_mb')) {
createContainer.setMemoryLimit(obj.optLong('memory_limit_in_mb'))
}
- createContainer.setPrivileged(obj.optBoolean('run_container_privileged', false))
+ createContainer.setPrivileged(obj.optBoolean('run_container_privileged', true))
createContainer.setTty(obj.optBoolean('allocate_pseudo_tty', false))
if(obj.optJSONArray('volumes')) {
createContainer.setVolumes(obj.optJSONArray('volumes') as List<String>)