Skip to content

Commit

Permalink
fix: fixed package name and folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Nobody21 committed Oct 16, 2023
1 parent 853a050 commit ffbfc03
Show file tree
Hide file tree
Showing 5 changed files with 1,808 additions and 0 deletions.
1 change: 1 addition & 0 deletions kurtosis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: "github.com/hugobyte/polkadot-kurtosis-package"
47 changes: 47 additions & 0 deletions main.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

def run(plan,args):
plan.upload_files(src = "./output", name = "rococo")
list = ["alice", "bob"]
count = 0
port = 9944
for i in list:
port = port+count
start_relay_chain(plan,i, port)
count = count+1

exec_command = ["bin/sh","-c","/usr/local/bin/bifrost --base-path=/data --chain=/app/bifrost-local-2001.json --ws-external --rpc-external --rpc-cors=all --name=parachain-2001-0 --collator --rpc-methods=unsafe --force-authoring --execution=wasm --alice --node-key=15f888e12fe354ac310399c7126ff43db1a58453784ea1784e26edc0bee3c965 --listen-addr=/ip4/0.0.0.0/tcp/30333 -- --chain=/app/rococo-local.json --execution=wasm"]
parachain = plan.add_service(
name="parachain",
config= ServiceConfig(
image = "bifrostnetwork/bifrost:bifrost-v0.9.66",
files={
"/app":"rococo"
},
ports = {
"polkadot" : PortSpec(9944, transport_protocol="TCP"),
},
public_ports = {
"polkadot" : PortSpec(9946, transport_protocol="TCP"),
},
entrypoint=exec_command
)
)

def start_relay_chain(plan, name, port):
exec_command = ["bin/sh","-c","polkadot --base-path=/data --chain=/app/rococo-local.json --validator --ws-external --rpc-external --rpc-cors=all --name=alice --{0} --rpc-methods=unsafe --execution=wasm".format(name)]
polkadot = plan.add_service(
name="polkadot-{0}".format(name),
config= ServiceConfig(
image = "parity/polkadot:v0.9.31",
files={
"/app":"rococo"
},
ports = {
"polkadot" : PortSpec(9944, transport_protocol="TCP"),
},
public_ports = {
"polkadot" : PortSpec(port, transport_protocol="TCP"),
},
entrypoint=exec_command
)
)
1,403 changes: 1,403 additions & 0 deletions output/bifrost-local-2001.json

Large diffs are not rendered by default.

160 changes: 160 additions & 0 deletions output/karura-local-2000.json

Large diffs are not rendered by default.

197 changes: 197 additions & 0 deletions output/rococo-local.json

Large diffs are not rendered by default.

0 comments on commit ffbfc03

Please sign in to comment.