Skip to content

Commit 0894ba7

Browse files
authored
Merge pull request #568 from NERSC/update-envs
clarify cfg.LOCAL and remove DOCKER_COMPATIBILITY_MODE
2 parents 4b78cc6 + 314de92 commit 0894ba7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

backend/agent/.env.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
DOCKER_COMPATIBILITY_MODE=true
2-
LOCAL=true
1+
USE_NORMAL_PODMAN=true
32
NATS_SERVER_URL=nats://localhost:4222
43
NATS_SERVER_URL_IN_CONTAINER=nats://host.containers.internal:4222
54
PODMAN_SERVICE_URI=unix:///var/folders/np/......./something.sock

backend/agent/interactem/agent/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
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
7878
else:
@@ -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(

backend/agent/interactem/agent/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def _load_vector_template() -> str:
2525
class 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")

0 commit comments

Comments
 (0)