From 04a20a2be8afc0c63682abba10b4186772ea99fb Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 30 Oct 2023 15:31:50 +0530 Subject: [PATCH] feat: implement kurtosis package to run khala parachain local --- parachain/khala.star | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 parachain/khala.star diff --git a/parachain/khala.star b/parachain/khala.star new file mode 100644 index 0000000..2e958e0 --- /dev/null +++ b/parachain/khala.star @@ -0,0 +1,19 @@ +def run_khala(plan, args): + exec_command = [ + "/bin/sh", + "-c", + "/usr/local/bin/khala-node --chain=khala-dev-2004 --ws-external --rpc-external --rpc-cors=all --name=parachain-2010-0 --collator --rpc-methods=unsafe --force-authoring --execution=wasm --alice -- --chain=/app/rococo-local.json --execution=wasm", + ] + plan.add_service( + name = "khala", + config = ServiceConfig( + image = "phalanetwork/khala-node:latest", + ports = { + "parachain": PortSpec(9944, transport_protocol = "TCP"), + }, + files = { + "/app": "configs", + }, + entrypoint = exec_command, + ), + )