-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement kurtosis package for local setup of turing parachain (#…
…35) Co-authored-by: Shreyas S Bhat <[email protected]>
- Loading branch information
1 parent
a3a93ab
commit c559174
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
def run_turing(plan): | ||
exec_command = [ | ||
"--chain=turing-dev", | ||
"--rpc-port=9933", | ||
"--collator", | ||
"--rpc-external", | ||
"--rpc-cors=all", | ||
"--rpc-methods=unsafe", | ||
"--execution=wasm", | ||
"--tmp", | ||
"--unsafe-ws-external", | ||
"--", | ||
"--chain=/app/rococo-local.json", | ||
"--execution=wasm", | ||
] | ||
turing_service_config = ServiceConfig( | ||
image = "oaknetwork/turing:latest", | ||
files = { | ||
"/app": "configs", | ||
}, | ||
ports = { | ||
"ws": PortSpec(9944, transport_protocol = "TCP"), | ||
"rpc": PortSpec(9933, transport_protocol = "TCP"), | ||
}, | ||
cmd = exec_command, | ||
) | ||
|
||
service_details = plan.add_service(name = "turing-node", config = turing_service_config) | ||
|
||
return service_details |