mirror of
https://github.com/engineer-man/piston.git
synced 2025-09-20 19:00:04 +02:00
Explicitly provide env vars instead of inheriting them from parent (#703)
This commit is contained in:
parent
6ef0cdf7b4
commit
1d55a41a2d
2 changed files with 4 additions and 14 deletions
|
@ -158,7 +158,9 @@ class Job {
|
|||
'/box/submission',
|
||||
'-E',
|
||||
'HOME=/tmp',
|
||||
'-e',
|
||||
...this.runtime.env_vars.flat_map(v => ['-E', v]),
|
||||
'-E',
|
||||
`PISTON_LANGUAGE=${this.runtime.language}`,
|
||||
`--dir=${this.runtime.pkgdir}`,
|
||||
`--dir=/etc:noexec`,
|
||||
`--processes=${this.runtime.max_process_count}`,
|
||||
|
@ -177,10 +179,6 @@ class Job {
|
|||
...args,
|
||||
],
|
||||
{
|
||||
env: {
|
||||
...this.runtime.env_vars,
|
||||
PISTON_LANGUAGE: this.runtime.language,
|
||||
},
|
||||
stdio: 'pipe',
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue