Files
windmill/backend/windmill-worker/nsjail/run.powershell.config.proto
2026-03-16 12:06:31 +00:00

140 lines
1.7 KiB
Protocol Buffer

name: "powershell run script"
mode: ONCE
hostname: "powershell"
log_level: ERROR
time_limit: {TIMEOUT}
disable_rl: true
cwd: "/tmp"
clone_newnet: false
clone_newuser: {CLONE_NEWUSER}
skip_setsid: true
keep_caps: false
keep_env: true
mount_proc: true
mount {
src: "/bin"
dst: "/bin"
is_bind: true
}
mount {
src: "/proc/self/fd"
dst: "/dev/fd"
is_symlink: true
mandatory: false
}
mount {
src: "/opt/microsoft"
dst: "/opt/microsoft"
is_bind: true
}
mount {
src: "/lib"
dst: "/lib"
is_bind: true
}
mount {
src: "/lib64"
dst: "/lib64"
is_bind: true
mandatory: false
}
mount {
src: "/usr"
dst: "/usr"
is_bind: true
}
mount {
src: "/dev/null"
dst: "/dev/null"
is_bind: true
rw: true
}
mount {
dst: "/tmp"
fstype: "tmpfs"
rw: true
options: "size=800000000"
}
mount {
src: "{JOB_DIR}/main.ps1"
dst: "/tmp/main.ps1"
is_bind: true
mandatory: false
}
mount {
src: "{JOB_DIR}/wrapper.ps1"
dst: "/tmp/wrapper.ps1"
is_bind: true
mandatory: false
}
mount {
src: "/etc"
dst: "/etc"
is_bind: true
}
mount {
src: "/dev/random"
dst: "/dev/random"
is_bind: true
}
mount {
src: "/dev/urandom"
dst: "/dev/urandom"
is_bind: true
}
mount {
src: "{JOB_DIR}/result.json"
dst: "/tmp/result.json"
rw: true
is_bind: true
}
mount {
src: "{JOB_DIR}/result.out"
dst: "/tmp/result.out"
rw: true
is_bind: true
}
mount {
src: "{JOB_DIR}/result2.out"
dst: "/tmp/result2.out"
rw: true
is_bind: true
}
iface_no_lo: true
mount {
src: "{CACHE_DIR}"
dst: "{CACHE_DIR}"
is_bind: true
rw: false
mandatory: false
}
{SHARED_MOUNT}
envar: "HOME=/tmp"