mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 20:21:54 +00:00
add default settings to remove wordcount and synctex containers
This commit is contained in:
parent
2ce03f0554
commit
85f4f348dd
1 changed files with 9 additions and 1 deletions
|
@ -102,7 +102,15 @@ if (process.env.DOCKER_RUNNER) {
|
|||
const compileGroupConfig = JSON.parse(
|
||||
process.env.COMPILE_GROUP_DOCKER_CONFIGS || '{}'
|
||||
)
|
||||
module.exports.clsi.docker.compileGroupConfig = compileGroupConfig
|
||||
// Automatically clean up wordcount and synctex containers
|
||||
const defaultCompileGroupConfig = {
|
||||
wordcount: { 'HostConfig.AutoRemove': true },
|
||||
synctex: { 'HostConfig.AutoRemove': true }
|
||||
}
|
||||
module.exports.clsi.docker.compileGroupConfig = Object.assign(
|
||||
defaultCompileGroupConfig,
|
||||
compileGroupConfig
|
||||
)
|
||||
} catch (error) {
|
||||
console.error(error, 'could not apply compile group docker configs')
|
||||
process.exit(1)
|
||||
|
|
Loading…
Reference in a new issue