Add chroot_env to Java driver (which uses the exec driver internally)

This commit is contained in:
Jay Oster
2016-08-04 11:14:15 -07:00
parent 1876fc2b10
commit 09f2fc9f8f

View File

@@ -219,6 +219,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
Cmd: absPath,
Args: args,
FSIsolation: true,
ChrootEnv: d.config.ChrootEnv,
ResourceLimits: true,
User: getExecutorUser(task),
}, executorCtx)