comparison NewTests/helpers.py @ 618:4b3d13e498a5

force running docker as 999:999
author Alain Mazy <am@osimis.io>
date Mon, 05 Feb 2024 16:42:37 +0100
parents 3e15e950c462
children 79812e0df162
comparison
equal deleted inserted replaced
617:6ba2ff41ea52 618:4b3d13e498a5
277 "-e", "VERBOSE_STARTUP=true" if enable_verbose else "VERBOSE_STARTUP=false", 277 "-e", "VERBOSE_STARTUP=true" if enable_verbose else "VERBOSE_STARTUP=false",
278 "-v", f"{config_path}:/etc/orthanc/orthanc.json", 278 "-v", f"{config_path}:/etc/orthanc/orthanc.json",
279 "-v", f"{storage_path}:/var/lib/orthanc/db/", 279 "-v", f"{storage_path}:/var/lib/orthanc/db/",
280 "--name", config_name, 280 "--name", config_name,
281 "-p", f"{Helpers.orthanc_under_tests_http_port}:{Helpers.orthanc_under_tests_http_port}", 281 "-p", f"{Helpers.orthanc_under_tests_http_port}:{Helpers.orthanc_under_tests_http_port}",
282 "-p", f"{Helpers.orthanc_under_tests_dicom_port}:{Helpers.orthanc_under_tests_dicom_port}" 282 "-p", f"{Helpers.orthanc_under_tests_dicom_port}:{Helpers.orthanc_under_tests_dicom_port}",
283 "-u", f"999:999"
283 ] 284 ]
284 if network: 285 if network:
285 cmd.extend(["--network", network]) 286 cmd.extend(["--network", network])
286 cmd.append(docker_image) 287 cmd.append(docker_image)
287 288