From e0d47717ed4d2d6d4fc585dc80ee11b97bff535f Mon Sep 17 00:00:00 2001 From: Abhishek Harde <47945971+abhiyana@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:55:10 +0530 Subject: [PATCH] feat: implement the kurtosis package for turing mainnet node setup (#62) --- parachain/mainnet-setup/turing.star | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 parachain/mainnet-setup/turing.star diff --git a/parachain/mainnet-setup/turing.star b/parachain/mainnet-setup/turing.star new file mode 100644 index 0000000..acd6164 --- /dev/null +++ b/parachain/mainnet-setup/turing.star @@ -0,0 +1,26 @@ +def run_turing(plan): + exec_command = [ + "--chain=turing", + "--rpc-port=9933", + "--collator", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--execution=wasm" + ] + turing_service_config = ServiceConfig( + image = "oaknetwork/turing:latest", + files = { + "/app": "configs", + }, + ports = { + "ws": PortSpec(9944, transport_protocol = "TCP"), + "rpc": PortSpec(9933, transport_protocol = "TCP"), + }, + cmd = exec_command, + entrypoint = ["./oak-collator"] + ) + + service_details = plan.add_service(name = "turing-node", config = turing_service_config) + + return service_details