File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- DOCKER_COMPATIBILITY_MODE = true
2- LOCAL = true
1+ USE_NORMAL_PODMAN = true
32NATS_SERVER_URL = nats://localhost:4222
43NATS_SERVER_URL_IN_CONTAINER = nats://host.containers.internal:4222
54PODMAN_SERVICE_URI = unix:///var/folders/np/......./something.sock
Original file line number Diff line number Diff line change 7272 PODMAN_SERVICE_URI = None
7373
7474# Use configuration, as we always expect to install podman-hpc-client
75- if cfg .LOCAL :
75+ if cfg .USE_NORMAL_PODMAN :
7676 PODMAN_COMMAND = "podman"
7777 from podman import PodmanClient
7878else :
@@ -992,7 +992,7 @@ async def create_container(
992992 await handle_name_conflict (client , op_name )
993993
994994 create_kwargs : dict [str , object ] = {}
995- if not cfg .LOCAL and operator .requires_gpus :
995+ if not cfg .USE_NORMAL_PODMAN and operator .requires_gpus :
996996 create_kwargs ["gpu" ] = True
997997
998998 return await to_thread .run_sync (
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ def _load_vector_template() -> str:
2525class Settings (BaseSettings ):
2626 model_config = SettingsConfigDict (env_file = ".env" , extra = "ignore" )
2727 ID : uuid .UUID = Field (default_factory = uuid .uuid4 )
28- LOCAL : bool = False
29- DOCKER_COMPATIBILITY_MODE : bool = False
28+ USE_NORMAL_PODMAN : bool = False
3029 PODMAN_SERVICE_URI : str | None = None
3130 PODMAN_BINARY_PATH : Path | None = None
3231 NATS_SERVER_URL : AnyWebsocketUrl | NatsDsn = NatsDsn ("nats://localhost:4222" )
You can’t perform that action at this time.
0 commit comments