containerpilot
containerpilot copied to clipboard
Run as user per job
Add a new key "user" to define as what uid the process should run under.
Could this be accomplished by adding something like the following
cmd.SysProcAttr.Credential = &syscall.Credential{Uid: uid, Gid: gid}
below https://github.com/joyent/containerpilot/blob/bdc8fb7b0bee7cf38e2a680ac76a368e790443bc/commands/commands.go#L104? @tgross @misterbisson
Would be a really useful feature
I don't think CP is being developed/supported anymore @gbmeuk
Thanks, @mterron. I'd seen comments about Joyent feeling that it is complete and not being actively being developed. Not sure about supported and whether they're reviewing PRs?
Mind you they have a lot of other issues right now, I guess.
I added the feature in PR #584.