소스 검색

add default settings to remove wordcount and synctex containers

Brian Gough 6 년 전
부모
커밋
85f4f348dd
1개의 변경된 파일과 9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      services/clsi/config/settings.defaults.js

+ 9 - 1
services/clsi/config/settings.defaults.js

@@ -102,7 +102,15 @@ if (process.env.DOCKER_RUNNER) {
     const compileGroupConfig = JSON.parse(
     const compileGroupConfig = JSON.parse(
       process.env.COMPILE_GROUP_DOCKER_CONFIGS || '{}'
       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) {
   } catch (error) {
     console.error(error, 'could not apply compile group docker configs')
     console.error(error, 'could not apply compile group docker configs')
     process.exit(1)
     process.exit(1)