diff --git a/parachain/nodle.star b/parachain/nodle.star new file mode 100644 index 0000000..b63276f --- /dev/null +++ b/parachain/nodle.star @@ -0,0 +1,28 @@ +def run_nodle(plan): + exec_command = [ + "--chain=local", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--tmp", + "--", + "--chain=/app/rococo-local.json", + "--execution=wasm" + ] + nodle_service_config = ServiceConfig( + image = "nodlecode/chain:latest", + files = { + "/app": "configs", + }, + ports = { + "9944": PortSpec(9944, transport_protocol = "TCP"), + "9933": PortSpec(9933, transport_protocol = "TCP"), + }, + public_ports = { + "9944": PortSpec(9432, transport_protocol = "TCP"), + "9933": PortSpec(9431, transport_protocol = "TCP"), + }, + cmd = exec_command, + ) + plan.add_service(name = "nodle-node", config = nodle_service_config)