-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: break down the deployment process into various stages (#28)
* feat: introduce stages * chore: group config and service * chore: nit * chore: move code to its own package * refactor: clean up stage 4 * chore: nit * chore: clean up stage 2 * chore: nit * chore: lint * chore: nit * chore: clean up * chore: remove updates to bridge, agglayer and dac configs in run-contract-setup.sh * fix: typo * refactor: introduce `get_key_from_config` * chore: fetch genesis and keystores + simplify get key from config * chore: use `plan.store_service_files` * fix: a few bugs * fix: permissionless-node genesis issue * fix: genesis artifact issue * chore: nit * doc: document how to leverage stages in README --------- Co-authored-by: John Hilliard <[email protected]>
- Loading branch information
1 parent
5fa402b
commit 0b5494b
Showing
8 changed files
with
509 additions
and
328 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
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,13 @@ | ||
# Extract a specific key from a JSON file, within a service, using jq. | ||
def extract_json_key_from_service(plan, service_name, filename, key): | ||
plan.print("Extracting contract addresses and ports...") | ||
exec_recipe = ExecRecipe( | ||
command=[ | ||
"/bin/sh", | ||
"-c", | ||
"cat {}".format(filename, key), | ||
], | ||
extract={"extracted_value": "fromjson | .{}".format(key)}, | ||
) | ||
result = plan.exec(service_name=service_name, recipe=exec_recipe) | ||
return result["extract.extracted_value"] |
Oops, something went wrong.