From 13417585b40010d72effb50135b0e4b8c174564f Mon Sep 17 00:00:00 2001 From: SHANiTH K K <59169878+shanithkk@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:55:02 +0530 Subject: [PATCH] feat: implement kurtosis package to run phala parachain local (#16) Co-authored-by: Shreyas S Bhat <35568964+shreyasbhat0@users.noreply.github.com> --- parachain/khala.star | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/parachain/khala.star b/parachain/khala.star index 2e958e0..50f28b9 100644 --- a/parachain/khala.star +++ b/parachain/khala.star @@ -17,3 +17,23 @@ def run_khala(plan, args): entrypoint = exec_command, ), ) + +def run_phala(plan, args): + exec_command = [ + "/bin/sh", + "-c", + "/usr/local/bin/khala-node --chain=phala-dev-2035 --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 = "phala", + config = ServiceConfig( + image = "phalanetwork/phala-node:latest", + ports = { + "parachain": PortSpec(9944, transport_protocol = "TCP"), + }, + files = { + "/app": "configs", + }, + entrypoint = exec_command, + ), + )