test: add entrypoint

This commit is contained in:
Roman 2024-12-20 18:33:59 +08:00
parent 35dff2cdb2
commit 09c8e64ff4
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75
3 changed files with 5 additions and 4 deletions

View File

@ -35,7 +35,7 @@ class DockerManager:
logger.debug(f"Network {network_name} created")
return network
def start_container(self, image_name, port_bindings, args, log_path, container_ip, volumes, remove_container=True):
def start_container(self, image_name, port_bindings, args, log_path, container_ip, volumes, entrypoint, remove_container=True):
cli_args = []
for key, value in args.items():
if isinstance(value, list): # Check if value is a list

View File

@ -1,15 +1,15 @@
nomos_nodes = {
"nomos": {
"image": "nomos:latest",
"image": "nomos/nomos:latest",
"volumes": ["./testnet:/etc/nomos", "./tests/kzgrs/kzgrs_test_params:/kzgrs_test_params:z"],
"ports": ["3000/udp", "18080/tcp"],
"entrypoint": "/etc/nomos/scripts/run_nomos_node.sh",
},
"nomos_executor": {
"image": "nomos:latest",
"image": "nomos/nomos:latest",
"volumes": ["./testnet:/etc/nomos", "./tests/kzgrs/kzgrs_test_params:/kzgrs_test_params:z"],
"ports": ["3000/udp", "18080/tcp"],
"entrypoint": "/etc/nomos/scripts/run_nomos_executor.sh",
},
"cfgsync": {"image": "nomos:latest", "volumes": ["./testnet:/etc/nomos"], "ports": "", "entrypoint": "/etc/nomos/scripts/run_cfgsync.sh"},
"cfgsync": {"image": "nomos/nomos:latest", "volumes": ["./testnet:/etc/nomos"], "ports": "", "entrypoint": "/etc/nomos/scripts/run_cfgsync.sh"},
}

View File

@ -71,6 +71,7 @@ class NomosNode:
log_path=self._log_path,
container_ip=self._ext_ip,
volumes=self._volumes,
entrypoint=self._entrypoint,
remove_container=True,
)