mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[clsi] add env var override for seccomp profile (#25894)
GitOrigin-RevId: 6ef9a5c1f9149147641abb9fe1798b1b41a14c05
This commit is contained in:
@@ -141,9 +141,11 @@ if ((process.env.DOCKER_RUNNER || process.env.SANDBOXED_COMPILES) === 'true') {
|
||||
let seccompProfilePath
|
||||
try {
|
||||
seccompProfilePath = Path.resolve(__dirname, '../seccomp/clsi-profile.json')
|
||||
module.exports.clsi.docker.seccomp_profile = JSON.stringify(
|
||||
JSON.parse(require('node:fs').readFileSync(seccompProfilePath))
|
||||
)
|
||||
module.exports.clsi.docker.seccomp_profile =
|
||||
process.env.SECCOMP_PROFILE ||
|
||||
JSON.stringify(
|
||||
JSON.parse(require('node:fs').readFileSync(seccompProfilePath))
|
||||
)
|
||||
} catch (error) {
|
||||
console.error(
|
||||
error,
|
||||
|
||||
Reference in New Issue
Block a user