fix: set default docker image

- set nomos-cli command
This commit is contained in:
Roman 2025-02-04 16:22:54 +08:00
parent ae11280f0c
commit a5a04b2671
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75
2 changed files with 11 additions and 3 deletions

View File

@ -19,10 +19,16 @@ NOMOS = "nomos"
NOMOS_EXECUTOR = "nomos_executor" NOMOS_EXECUTOR = "nomos_executor"
CFGSYNC = "cfgsync" CFGSYNC = "cfgsync"
DEFAULT_IMAGE = "ghcr.io/logos-co/nomos-node:testnet"
NODE_1 = get_env_var("NODE_1", NOMOS) NODE_1 = get_env_var("NODE_1", NOMOS)
NODE_2 = get_env_var("NODE_2", NOMOS_EXECUTOR) NODE_2 = get_env_var("NODE_2", NOMOS_EXECUTOR)
NODE_3 = get_env_var("NODE_3", CFGSYNC) NODE_3 = get_env_var("NODE_3", CFGSYNC)
NOMOS_IMAGE = get_env_var("NOMOS_IMAGE", DEFAULT_IMAGE)
NOMOS_CLI = ["docker", "run", "--rm", "--entrypoint", "", NOMOS_IMAGE]
ADDITIONAL_NODES = get_env_var("ADDITIONAL_NODES", f"{NOMOS},{NOMOS}") ADDITIONAL_NODES = get_env_var("ADDITIONAL_NODES", f"{NOMOS},{NOMOS}")
# more nodes need to follow the NODE_X pattern # more nodes need to follow the NODE_X pattern
DOCKER_LOG_DIR = get_env_var("DOCKER_LOG_DIR", "./log/docker") DOCKER_LOG_DIR = get_env_var("DOCKER_LOG_DIR", "./log/docker")

View File

@ -1,18 +1,20 @@
from src.env_vars import NOMOS_IMAGE
nomos_nodes = { nomos_nodes = {
"nomos": { "nomos": {
"image": "nomos:latest", "image": NOMOS_IMAGE,
"volumes": ["cluster_config:/etc/nomos", "./kzgrs/kzgrs_test_params:/kzgrs_test_params:z"], "volumes": ["cluster_config:/etc/nomos", "./kzgrs/kzgrs_test_params:/kzgrs_test_params:z"],
"ports": ["3000/udp", "18080/tcp"], "ports": ["3000/udp", "18080/tcp"],
"entrypoint": "/etc/nomos/scripts/run_nomos_node.sh", "entrypoint": "/etc/nomos/scripts/run_nomos_node.sh",
}, },
"nomos_executor": { "nomos_executor": {
"image": "nomos:latest", "image": NOMOS_IMAGE,
"volumes": ["cluster_config:/etc/nomos", "./kzgrs/kzgrs_test_params:/kzgrs_test_params:z"], "volumes": ["cluster_config:/etc/nomos", "./kzgrs/kzgrs_test_params:/kzgrs_test_params:z"],
"ports": ["3000/udp", "18080/tcp"], "ports": ["3000/udp", "18080/tcp"],
"entrypoint": "/etc/nomos/scripts/run_nomos_executor.sh", "entrypoint": "/etc/nomos/scripts/run_nomos_executor.sh",
}, },
"cfgsync": { "cfgsync": {
"image": "nomos:latest", "image": NOMOS_IMAGE,
"volumes": ["cluster_config:/etc/nomos"], "volumes": ["cluster_config:/etc/nomos"],
"ports": "", "ports": "",
"entrypoint": "/etc/nomos/scripts/run_cfgsync.sh", "entrypoint": "/etc/nomos/scripts/run_cfgsync.sh",