From 7ba8280968156e8c0634b0702659d819535de868 Mon Sep 17 00:00:00 2001 From: SHANiTH K K <59169878+shanithkk@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:49:46 +0530 Subject: [PATCH] feat: implement kurtosis package to run bajun parachain local (#15) --- parachain/ajuna.star | 50 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/parachain/ajuna.star b/parachain/ajuna.star index abaa7fd..c00aeed 100644 --- a/parachain/ajuna.star +++ b/parachain/ajuna.star @@ -1,14 +1,54 @@ -def run_ajuna(plan, args): - exec_command = ["--base-path=/data", "--chain=/app/bajun-raw.json", "--port=40335", "--ws-port=8846", "--unsafe-ws-external", "--rpc-cors=all", "--", "--execution=wasm", "--chain=/app/rococo-local.json", "--port=30345", "--ws-port=9979"] +def run_bajun(plan, args): + exec_command = [ + "--base-path=/data", + "--chain=/app/bajun-raw.json", + "--port=40335", + "--ws-port=9944", + "--unsafe-ws-external", + "--rpc-cors=all", + "--", + "--execution=wasm", + "--chain=/app/rococo-local.json", + "--port=30345", + "--ws-port=9979", + ] plan.add_service( - name = "ajun-node", + name = "bajun-node", config = ServiceConfig( image = "ajuna/parachain-bajun:latest", files = { - "/app": "output", + "/app": "configs", + }, + ports = { + "parachain": PortSpec(9944, transport_protocol = "TCP"), + }, + cmd = exec_command, + ), + ) + +def run_ajuna(plan, args): + exec_command = [ + "--base-path=/data", + "--chain=dev", + "--port=40335", + "--ws-port=9944", + "--unsafe-ws-external", + "--rpc-cors=all", + "--", + "--execution=wasm", + "--chain=/app/rococo-local.json", + "--port=30345", + "--ws-port=9979", + ] + plan.add_service( + name = "ajuna", + config = ServiceConfig( + image = "ajuna/parachain-ajuna:latest", + files = { + "/app": "configs", }, ports = { - "parachain": PortSpec(8846, transport_protocol = "TCP"), + "parachain": PortSpec(9944, transport_protocol = "TCP"), }, cmd = exec_command, ),