mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-01-10 18:03:07 +00:00
fix: pass exec commands instead of specialized docker exec func
This commit is contained in:
parent
0e6e62077b
commit
72307cb0e8
@ -36,8 +36,11 @@ class DockerManager:
|
||||
for key, value in args.items():
|
||||
if isinstance(value, list): # Check if value is a list
|
||||
cli_args.extend([f"--{key}={item}" for item in value]) # Add a command for each item in the list
|
||||
elif value is None:
|
||||
cli_args.append(f"{key}") # Add simple command as it is passed in the key
|
||||
else:
|
||||
cli_args.append(f"--{key}={value}") # Add a single command
|
||||
|
||||
port_bindings = {f"{port}/tcp": ("", port) for port in ports}
|
||||
logger.debug(f"Starting container with image {image_name}")
|
||||
logger.debug(f"Using args {cli_args}")
|
||||
|
||||
@ -87,6 +87,9 @@ class WakuNode:
|
||||
"cred-password": default_args["rln-creds"]["keystore_password"],
|
||||
"eth-contract-address": default_args["rln-creds"]["eth_contract_address"],
|
||||
}
|
||||
if default_args["rln-register-only"]:
|
||||
rln_opts["generate-rln-credentials"] = None
|
||||
|
||||
elif self.is_nwaku():
|
||||
rln_opts = {
|
||||
"rln-relay-eth-client-address": default_args["rln-creds"]["eth_client_address"],
|
||||
@ -95,7 +98,8 @@ class WakuNode:
|
||||
"rln-relay-eth-contract-address": default_args["rln-creds"]["eth_contract_address"],
|
||||
}
|
||||
if default_args["rln-register-only"]:
|
||||
rln_opts["execute"] = None
|
||||
rln_opts["--execute"] = None
|
||||
rln_opts["generateRlnKeystore"] = None
|
||||
|
||||
rln_opts["rln-relay-cred-path"] = "/keystore/keystore.json"
|
||||
del default_args["rln-creds"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user