Generate runlets from containerized Unix processes.
Add runlet_sh
to your list of dependencies in mix.exs
:
def deps do
[{:runlet_sh, github: "msantos/runlet_sh"}]
end
mkdir -p priv/root/bin priv/root/sbin \
priv/root/usr priv/root/lib priv/root/lib64 \
priv/root/opt priv/root/tmp priv/root/home priv/root/proc
The UID/GID of the containerized processes is selected from one of
65535 UIDs beginning from 0xF0000000. Systems may limit the maximum UID:
setting a UID above the limit will fail with {:error, :einval}
.
To set a lower UID offset:
import Config
config :runlet,
uidmin: 0x80000
import Config
config :runlet,
uidfun: fn _uidmin -> 65577 end
youruser ALL = NOPASSWD: /path/to/runlet_sh/deps/prx/priv/prx