@@ -63,6 +63,7 @@ const CONTAINER_NAMES = {};
6363const originalTranslations = { } ;
6464const COUCH_USER_ID_PREFIX = 'org.couchdb.user:' ;
6565const COMPOSE_FILES = [ 'cht-core' , 'cht-couchdb-cluster' ] ;
66+ const COMPOSE_OVERRIDE_FILE = path . resolve ( __dirname , '../cht-core-test.override.yml' ) ;
6667const PERMANENT_TYPES = [ DOC_TYPES . TRANSLATIONS , 'translations-backup' , 'user-settings' , 'info' ] ;
6768const db = new PouchDB ( `${ constants . BASE_URL } /${ constants . DB_NAME } ` , { auth } ) ;
6869const sentinelDb = new PouchDB ( `${ constants . BASE_URL } /${ constants . DB_NAME } -sentinel` , { auth } ) ;
@@ -918,6 +919,7 @@ const listenForApi = async () => {
918919
919920const dockerComposeCmd = ( params ) => {
920921 const composeFiles = COMPOSE_FILES . map ( file => [ '-f' , getTestComposeFilePath ( file ) ] ) . flat ( ) ;
922+ composeFiles . push ( '-f' , COMPOSE_OVERRIDE_FILE ) ;
921923 params = `docker compose ${ composeFiles . join ( ' ' ) } -p ${ PROJECT_NAME } ${ params } ` ;
922924
923925 return runCommand ( params ) ;
@@ -1207,7 +1209,8 @@ const generateComposeFiles = async () => {
12071209 const testComposePath = getTestComposeFilePath ( file ) ;
12081210
12091211 const template = await fs . promises . readFile ( templatePath , 'utf-8' ) ;
1210- await fs . promises . writeFile ( testComposePath , mustache . render ( template , view ) ) ;
1212+ const compiled = mustache . render ( template , view ) ;
1213+ await fs . promises . writeFile ( testComposePath , compiled ) ;
12111214 }
12121215} ;
12131216
0 commit comments