File tree 1 file changed +7
-3
lines changed
packages/pytest-simcore/src/pytest_simcore
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
# pylint: disable=unused-argument
3
3
# pylint: disable=unused-variable
4
4
5
- """ Fixtures to create docker-compose.yaml configuration files (as in Makefile)
5
+ """Fixtures to create docker-compose.yaml configuration files (as in Makefile)
6
6
7
- - Basically runs `docker compose config
8
- - Services in stack can be selected using 'core_services_selection', 'ops_services_selection' fixtures
7
+ - Basically runs `docker compose config
8
+ - Services in stack can be selected using 'core_services_selection', 'ops_services_selection' fixtures
9
9
10
10
"""
11
11
@@ -391,6 +391,10 @@ def _filter_services_and_dump(
391
391
if "environment" in service :
392
392
service ["environment" ] = _minio_fix (service ["environment" ])
393
393
394
+ if name == "postgres" :
395
+ # NOTE: # -c fsync=off is not recommended for production as this disable writing to disk https://pythonspeed.com/articles/faster-db-tests/
396
+ service ["command" ] += ["-c" , "fsync=off" ]
397
+
394
398
# updates current docker-compose (also versioned ... do not change by hand)
395
399
with docker_compose_path .open ("wt" ) as fh :
396
400
yaml .dump (content , fh , default_flow_style = False )
You can’t perform that action at this time.
0 commit comments