From a3a93ab270810758db60e38e082270539845eb2e Mon Sep 17 00:00:00 2001 From: SHANiTH K K <59169878+shanithkk@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:45:42 +0530 Subject: [PATCH] feat: implement kurtosis package to run moonsama parachain local (#33) * feat: implement kurtosis package to run moonsama parachain local * refactor: change port key to "ws" --------- Co-authored-by: Shreyas S Bhat <35568964+shreyasbhat0@users.noreply.github.com> --- parachain/moonsama.star | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 parachain/moonsama.star diff --git a/parachain/moonsama.star b/parachain/moonsama.star new file mode 100644 index 0000000..6c2a7eb --- /dev/null +++ b/parachain/moonsama.star @@ -0,0 +1,19 @@ +def run_moonsama(plan, args): + exec_command = [ + "bin/sh", + "-c", + "/moonsama/moonsama-node --dev --tmp --ws-external --rpc-external --rpc-cors all --rpc-methods unsafe -- --execution wasm --chain /app/rococo-local.json", + ] + plan.add_service( + name = "moonsama", + config = ServiceConfig( + image = "moonsama/moonsama-node:latest", + files = { + "/app": "configs", + }, + ports = { + "ws": PortSpec(9944, transport_protocol = "TCP"), + }, + entrypoint = exec_command, + ), + )