-
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.
refactor: entry-points, service config commands for parachains and im…
…age.star (#37) * refactor: change entrypoints inside ServiceConfig * refactor: refactor image.star, add entrypoint and base * refactor: refactor run function in main.star * refactor: remove logs folder --------- Co-authored-by: shreyasbhat0 <[email protected]>
- Loading branch information
1 parent
399b7ed
commit ec618bc
Showing
20 changed files
with
236 additions
and
79 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 |
---|---|---|
@@ -1,19 +1,29 @@ | ||
def run_acala(plan): | ||
exec_command = ["--chain=/app/acala-raw.json", "--collator", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--instant-sealing"] | ||
exec_command = [ | ||
"--chain=dev", | ||
"--collator", | ||
"--rpc-cors=all", | ||
"--rpc-port=9933", | ||
"--rpc-methods=unsafe", | ||
"--unsafe-rpc-external", | ||
"--unsafe-ws-external", | ||
"--tmp", | ||
"--execution=wasm", | ||
"--", | ||
"--chain=/app/rococo-local.json", | ||
"--execution=wasm" | ||
] | ||
|
||
acala_service_config = ServiceConfig( | ||
image = "acala/acala-node:latest", | ||
image = "acala/mandala-node:latest", | ||
files = { | ||
"/app": "configs", | ||
}, | ||
ports = { | ||
"ws": PortSpec(9944, transport_protocol = "TCP"), | ||
"rpc": PortSpec(9933, transport_protocol = "TCP"), | ||
}, | ||
public_ports = { | ||
"ws": PortSpec(9432, transport_protocol = "TCP"), | ||
"rpc": PortSpec(9431, transport_protocol = "TCP"), | ||
}, | ||
cmd = exec_command, | ||
entrypoint= ["/usr/local/bin/acala"] | ||
) | ||
plan.add_service(name = "acala-node", config = acala_service_config) |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.