Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
e01ce160
Unverified
Commit
e01ce160
authored
Oct 17, 2023
by
Gyanendra Mishra
Committed by
GitHub
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: big table spin up logic for k8s (#298)
tested locally on digital ocean
parent
2c64de05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
12 deletions
+23
-12
full_beaconchain_launcher.star
src/full_beaconchain/full_beaconchain_launcher.star
+23
-12
No files found.
src/full_beaconchain/full_beaconchain_launcher.star
View file @
e01ce160
...
@@ -104,28 +104,39 @@ def launch_full_beacon(
...
@@ -104,28 +104,39 @@ def launch_full_beacon(
# Initialize the db schema
# Initialize the db schema
initdbschema = plan.add_service(
initdbschema = plan.add_service(
name="explorer-
initdbschema
",
name="explorer-
schema-initializer
",
config=ServiceConfig(
config=ServiceConfig(
image=IMAGE_NAME,
image=IMAGE_NAME,
files={
files={
"/app/config/": config_files_artifact_name,
"/app/config/": config_files_artifact_name,
},
},
entrypoint=["./misc"],
entrypoint=["tail", "-f", "/dev/null"],
cmd=["-config", "/app/config/config.yml", "-command", "applyDbSchema"],
),
),
)
)
plan.print("applying db schema")
plan.exec(
service_name=initdbschema.name,
recipe=ExecRecipe(
["./misc", "-config", "/app/config/config.yml", "-command", "applyDbSchema"]
),
)
plan.print("applying big table schema")
# Initialize the bigtable schema
# Initialize the bigtable schema
initbigtableschema = plan.add_service(
plan.exec(
name="explorer-initbigtableschema",
service_name=initdbschema.name,
config=ServiceConfig(
recipe=ExecRecipe(
image=IMAGE_NAME,
[
files={
"./misc",
"/app/config/": config_files_artifact_name,
"-config",
},
"/app/config/config.yml",
entrypoint=["./misc"],
"-command",
cmd=["-config", "/app/config/config.yml", "-command", "initBigtableSchema"],
"initBigtableSchema",
]
),
),
)
)
# Start the indexer
# Start the indexer
indexer = plan.add_service(
indexer = plan.add_service(
name="explorer-indexer",
name="explorer-indexer",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment