fix bun on nsjail

This commit is contained in:
Ruben Fiszel
2023-10-11 23:12:43 +02:00
parent a80c3a39c1
commit ff529e6c1a
2 changed files with 10 additions and 1 deletions
@@ -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"
+4 -1
View File
@@ -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}");