mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 00:00:46 +00:00
fix bun on nsjail
This commit is contained in:
@@ -12,6 +12,7 @@ cwd: "/tmp/bun"
|
||||
|
||||
clone_newnet: false
|
||||
clone_newuser: {CLONE_NEWUSER}
|
||||
clone_newcgroup: false
|
||||
|
||||
keep_caps: false
|
||||
keep_env: true
|
||||
@@ -28,6 +29,11 @@ mount {
|
||||
is_bind: true
|
||||
}
|
||||
|
||||
mount {
|
||||
src: "/sys/fs"
|
||||
dst: "/sys/fs"
|
||||
is_bind: true
|
||||
}
|
||||
|
||||
mount {
|
||||
src: "/lib64"
|
||||
|
||||
@@ -269,7 +269,10 @@ run().catch(async (e) => {{
|
||||
write_import_map_f
|
||||
)?;
|
||||
|
||||
let common_deno_proc_envs = get_common_deno_proc_envs(&token, base_internal_url).await;
|
||||
let mut common_deno_proc_envs = get_common_deno_proc_envs(&token, base_internal_url).await;
|
||||
if !*DISABLE_NSJAIL {
|
||||
common_deno_proc_envs.insert("HOME".to_string(), job_dir.to_string());
|
||||
}
|
||||
|
||||
//do not cache local dependencies
|
||||
let reload = format!("--reload={base_internal_url}");
|
||||
|
||||
Reference in New Issue
Block a user