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