From ba509c7a6a3f1fac07d75d3983e611acb5945fbf Mon Sep 17 00:00:00 2001 From: Abhishek Harde <47945971+abhiyana@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:21:28 +0530 Subject: [PATCH] feat: implement kurtosis package for local setup of mangata parachain (#32) * feat: implement kurtosis package for local setup of mangata parachain * refactor: change runction name from run to run_mangata * refactor: remove args from parameter of run_mangata function * refactor: change file mount from output to configs * refactor: change port key value --------- Co-authored-by: Shreyas S Bhat <35568964+shreyasbhat0@users.noreply.github.com> --- parachain/mangata.star | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 parachain/mangata.star diff --git a/parachain/mangata.star b/parachain/mangata.star new file mode 100644 index 0000000..8bfd218 --- /dev/null +++ b/parachain/mangata.star @@ -0,0 +1,24 @@ +def run_mangata(plan): + exec_command = [ + "--chain=rococo-local", + "--rpc-external", + "--rpc-cors=all", + "--rpc-methods=unsafe", + "--unsafe-ws-external", + "--tmp", + "--", + "--chain=/app/rococo-local.json", + "--execution=wasm" + ] + mangata_service_config = ServiceConfig( + image = "mangatasolutions/mangata-node:ci-e2e-jobs-fix-MGX-785-fast", + files = { + "/app": "configs", + }, + ports = { + "ws": PortSpec(9944, transport_protocol = "TCP"), + "tcp": PortSpec(9933, transport_protocol = "TCP"), + }, + cmd = exec_command, + ) + plan.add_service(name = "mangata-node", config = mangata_service_config)