From 8a278dbb8cc746c6767383126aefe77cc9766634 Mon Sep 17 00:00:00 2001 From: Abhishek Harde <47945971+abhiyana@users.noreply.github.com> Date: Tue, 7 Nov 2023 10:44:05 +0530 Subject: [PATCH] feat: implement kurtosis package for clover testnet node (#41) Co-authored-by: Shreyas S Bhat <35568964+shreyasbhat0@users.noreply.github.com> --- parachain/testnet-setup/clover.star | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 parachain/testnet-setup/clover.star diff --git a/parachain/testnet-setup/clover.star b/parachain/testnet-setup/clover.star new file mode 100644 index 0000000..ae0a493 --- /dev/null +++ b/parachain/testnet-setup/clover.star @@ -0,0 +1,26 @@ +def run_clover(plan): + exec_command = [ + "--base-path=/opt/chaindata", + "--chain=/opt/specs/clover-preview-iris.json", + "--port=30333", + "--ws-port=9944", + "--rpc-port=9933", + "--rpc-cors=all", + "--validator", + "--unsafe-ws-external", + "--unsafe-rpc-external", + "--rpc-methods=Unsafe" + ] + + service_config = ServiceConfig( + image = "cloverio/clover-iris:0.1.15", + ports = { + "ws": PortSpec(9944, transport_protocol="TCP"), + "tcp": PortSpec(9933, transport_protocol="TCP") + }, + cmd = exec_command, + entrypoint = ["/bin/sh", "-c", "/opt/clover/bin/clover"] + ) + + plan.add_service(name= "clover-node", config= service_config) +