Skip to content

Commit

Permalink
feat: implement kurtosis package for local setup of karura parachain (#…
Browse files Browse the repository at this point in the history
…19)

* feat: implement kurtosis package for local setup of karura parachain

* refactor: format  exec_command to multiple lines

---------

Co-authored-by: Shreyas S Bhat <[email protected]>
  • Loading branch information
abhiyana and shreyasbhat0 authored Oct 30, 2023
1 parent ecbf032 commit bf31def
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions parachain/karura.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
def run_karura(plan):
exec_command = [
"--chain=dev",
"--collator",
"--rpc-external",
"--rpc-cors=all",
"--rpc-methods=unsafe",
"--tmp",
"--",
"--chain=/app/rococo-local.json",
"--execution=wasm"
]

karura_service_config = ServiceConfig(
image = "acala/karura-node:latest",
files = {
"/app": "configs",
},
ports = {
"9944": PortSpec(9944, transport_protocol = "TCP"),
"9933": PortSpec(9933, transport_protocol = "TCP"),
},
public_ports = {
"9944": PortSpec(9432, transport_protocol = "TCP"),
"9933": PortSpec(9431, transport_protocol = "TCP"),
},
cmd = exec_command,
)
plan.add_service(name = "karura-node", config = karura_service_config)

0 comments on commit bf31def

Please sign in to comment.