Skip to content

Commit 9f2bcc0

Browse files
authored
✨Clusters-keeper: add CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DOCKER_IMAGE_TAG ENV (#5066)
1 parent fe16dd2 commit 9f2bcc0

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.env-devel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ CATALOG_DEV_FEATURES_ENABLED=0
3131
CATALOG_SERVICES_DEFAULT_RESOURCES='{"CPU": {"limit": 0.1, "reservation": 0.1}, "RAM": {"limit": 2147483648, "reservation": 2147483648}}'
3232
CATALOG_SERVICES_DEFAULT_SPECIFICATIONS='{}'
3333

34+
CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DOCKER_IMAGE_TAG=master-github-latest
3435
CLUSTERS_KEEPER_EC2_ACCESS=null
3536
CLUSTERS_KEEPER_MAX_MISSED_HEARTBEATS_BEFORE_CLUSTER_TERMINATION=5
3637
CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES=null

services/clusters-keeper/src/simcore_service_clusters_keeper/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
225225
)
226226

227227
CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DOCKER_IMAGE_TAG: str = Field(
228-
default="master-github-latest",
229-
description="defines the image tag to use for the computational backend",
228+
...,
229+
description="defines the image tag to use for the computational backend sidecar image (NOTE: it currently defaults to use itisfoundation organisation in Dockerhub)",
230230
)
231231

232232
SWARM_STACK_NAME: str = Field(

services/clusters-keeper/tests/unit/test_cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
# pylint:disable=redefined-outer-name
44

55

6-
import pytest
7-
from faker import Faker
86
from simcore_service_clusters_keeper.cli import main
97
from typer.testing import CliRunner
108

119
runner = CliRunner()
1210

1311

14-
def test_settings(monkeypatch: pytest.MonkeyPatch, faker: Faker):
15-
monkeypatch.setenv("SWARM_STACK_NAME", faker.pystr())
12+
def test_settings(app_environment):
1613
result = runner.invoke(main, ["settings"])
1714
assert result.exit_code == 0
1815
assert "APP_NAME=simcore-service-clusters-keeper" in result.stdout

services/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ services:
116116
networks:
117117
- default
118118
environment:
119+
- CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DOCKER_IMAGE_TAG=${CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DOCKER_IMAGE_TAG}
119120
- CLUSTERS_KEEPER_MAX_MISSED_HEARTBEATS_BEFORE_CLUSTER_TERMINATION=${CLUSTERS_KEEPER_MAX_MISSED_HEARTBEATS_BEFORE_CLUSTER_TERMINATION}
120121
- CLUSTERS_KEEPER_TASK_INTERVAL=${CLUSTERS_KEEPER_TASK_INTERVAL}
121122
- CLUSTERS_KEEPER_LOGLEVEL=${LOG_LEVEL:-WARNING}

0 commit comments

Comments
 (0)