From bf0027d10f5e0869111ed7db62ecdc18c64986fa Mon Sep 17 00:00:00 2001 From: "jonathan@vulcanize.io" Date: Tue, 5 Mar 2024 20:32:56 +0000 Subject: [PATCH] copying genesis.json to /data/blast-data for blast --- .../data/compose/docker-compose-blast.yml | 2 +- .../data/stacks/blast/deploy/commands.py | 11 +++++++++++ stack_orchestrator/data/stacks/blast/stack.yml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 stack_orchestrator/data/stacks/blast/deploy/commands.py diff --git a/stack_orchestrator/data/compose/docker-compose-blast.yml b/stack_orchestrator/data/compose/docker-compose-blast.yml index 91120c26..dc05494f 100644 --- a/stack_orchestrator/data/compose/docker-compose-blast.yml +++ b/stack_orchestrator/data/compose/docker-compose-blast.yml @@ -64,7 +64,7 @@ services: command: > op-node --l1="$L1_RPC_URL" - --l1.rpckind="$L1_RPC_KIND" + --l1.rpckind="any" --l2="http://blast-geth:8551" --l2.jwt-secret=/blast/jwt.txt --rollup.config="/blast/${NETWORK:-mainnet}/rollup.json" diff --git a/stack_orchestrator/data/stacks/blast/deploy/commands.py b/stack_orchestrator/data/stacks/blast/deploy/commands.py new file mode 100644 index 00000000..3ed24bb1 --- /dev/null +++ b/stack_orchestrator/data/stacks/blast/deploy/commands.py @@ -0,0 +1,11 @@ +from pathlib import Path +from shutil import copy + + +def create(context, extra_args): + #Our goal here is just to copy the genesis.json file for blast + deployment_config_dir = context.deployment_dir.joinpath("data", "blast-data") + command_context = extra_args[2] + compose_file = [f for f in command_context.cluster_context.compose_files if "blast" in f][0] + source_config_file = Path(compose_file).parent.parent.joinpath("config", "blast", "genesis.json") + copy(source_config_file, deployment_config_dir) diff --git a/stack_orchestrator/data/stacks/blast/stack.yml b/stack_orchestrator/data/stacks/blast/stack.yml index 9257a8df..677c958d 100644 --- a/stack_orchestrator/data/stacks/blast/stack.yml +++ b/stack_orchestrator/data/stacks/blast/stack.yml @@ -2,7 +2,7 @@ version: "1.0" name: blast description: "A blast stack" repos: + - github.com/blast-io/blast containers: pods: - blast -