Skip to content

Commit

Permalink
feat: add dwiz parachain local
Browse files Browse the repository at this point in the history
  • Loading branch information
shanithkk committed Jan 21, 2024
1 parent 36fe45b commit d8f78d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package_io/build-spec.star
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def create_service_for_build_spec(plan, service_name, image, build_file):
object: The created service.
"""
files = {
"/app": "configs",
"/config": "configs",
}
if build_file != None:
files["/build"] = build_file
Expand Down
6 changes: 3 additions & 3 deletions parachain/node_setup.star
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run_testnet_node_with_entrypoint(plan, prometheus, image, chain_name, execut
ports = ports,
public_ports = public_ports,
files = {
"/app": "configs",
"/config": "configs",
},
entrypoint = execute_command,
)
Expand Down Expand Up @@ -86,7 +86,7 @@ def run_testnet_node_with_command(plan, prometheus, image, chain_name, execute_c
ports = ports,
public_ports = public_ports,
files = {
"/app": "configs",
"/config": "configs",
},
cmd = execute_command,
)
Expand All @@ -112,7 +112,7 @@ def spawn_parachain(plan, prometheus, image, chain_name, execute_command, build_
dict: The service details of spawned parachain node.
"""
files = {
"/app": "configs",
"/config": "configs",
}
if build_file != None:
files["/build"] = build_file
Expand Down
2 changes: 1 addition & 1 deletion parachain/parachain.star
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def start_local_parachain_node(plan, chain_type, parachain, para_id):
exec_comexec_commandmand = [
"/bin/bash",
"-c",
"{0} --base-path=/tmp/{1} --chain=/build/{1}-raw.json --rpc-port=9946 --port=30333 --rpc-external --rpc-cors=all --prometheus-external --{2} --collator --rpc-methods=unsafe --force-authoring --execution=wasm --trie-cache-size=0 -- --chain=/app/raw-polkadot.json --execution=wasm".format(binary, chain_name, node["name"]),
"{0} --base-path=/tmp/{1} --chain=/build/{1}-raw.json --rpc-port=9946 --port=30333 --rpc-external --rpc-cors=all --prometheus-external --{2} --collator --rpc-methods=unsafe --force-authoring --execution=wasm --trie-cache-size=0 -- --chain=/config/raw-polkadot.json --execution=wasm".format(binary, chain_name, node["name"]),
]

build_file = raw_service.name
Expand Down
7 changes: 6 additions & 1 deletion parachain/static_files/images.star
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ parachain_images = {
"subsocial": {
"image": "dappforce/subsocial-parachain:latest",
"entrypoint": "/usr/local/bin/subsocial-collator",
"base": ["local-rococo", "/app/soonsocial.json", ""],
"base": ["local-rococo", "/config/soonsocial.json", ""],
},
"zeitgeist": {
"image": "zeitgeistpm/zeitgeist-node-parachain",
Expand Down Expand Up @@ -170,4 +170,9 @@ parachain_images = {
"entrypoint": "./oak-collator",
"base": ["turing-dev", "turing-staging", "turing"],
},
"dwiz": {
"image": "hugobyte/dwiz-parachain",
"entrypoint": "/app/dwiz-parachain-node",
"base": ["local", None, None],
},
}

0 comments on commit d8f78d4

Please sign in to comment.