-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add script based setup to join merge devnet #3514
Merged
Merged
Conversation
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
g11tech
requested review from
ColinSchwarz,
dapplion,
mpetrunic,
RyRy79261,
twoeths and
wemeetagain
as code owners
December 12, 2021 11:24
Code Climate has analyzed commit 2703325 and detected 0 issues on this pull request. View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## master #3514 +/- ##
=======================================
Coverage 37.57% 37.57%
=======================================
Files 310 310
Lines 8251 8251
Branches 1272 1272
=======================================
Hits 3100 3100
Misses 5003 5003
Partials 148 148 |
g11tech
changed the title
A easy script based setup to spinup devnet
An easy script based setup to spinup devnet
Dec 12, 2021
g11tech
changed the title
An easy script based setup to spinup devnet
An easy script based setup to join merge devnet
Dec 12, 2021
dapplion
changed the title
An easy script based setup to join merge devnet
Add script based setup to join merge devnet
Dec 12, 2021
g11tech
force-pushed
the
devnets
branch
2 times, most recently
from
December 14, 2021 07:53
ce7cde3
to
0fba75b
Compare
dapplion
approved these changes
Dec 15, 2021
wemeetagain
previously approved these changes
Dec 15, 2021
dapplion
previously approved these changes
Dec 15, 2021
twoeths
previously approved these changes
Dec 16, 2021
g11tech
dismissed stale reviews from twoeths, dapplion, and wemeetagain
via
December 16, 2021 05:42
1778f97
dapplion
approved these changes
Dec 16, 2021
27 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Easy script to join the merge devnet(s)
This is a setup to run and join the devnet with a single shell command. This script will pull the appropriate images and config and spin up the EL client and lodestar.
Requirements
Just run the script with arguments
Example scenarios
./setup.sh --dataDir kintsugi-data --elClient nethermind --devnetVars ./kintsugi.vars --withTerminal "gnome-terminal --disable-factory --" --dockerWithSudo
./setup.sh --dataDir kintsugi-data --elClient nethermind --devnetVars ./kintsugi.vars --dockerWithSudo
./setup.sh --dataDir kintsugi-data --elClient nethermind --devnetVars ./kintsugi.vars --detached --dockerWithSudo
You can alternate between
geth
andnethermind
to experiment with the ELs being out of sync ( and catching up) withlodestar
.Script parameters help
dataDir
: Where you want the script and client's configuration data to be setup. Should be non-existent one for the first run. (The directory if already present will skip fetching the configuration, assuming it has done previously). You can also clean indivizual directories of CL/EL between the re-runs.elClient
: Which EL client you want, currently working withgeth
andnethermind
devnetVars
: Contains the configuration specific to a devnet, like images, or urls for EL/CL to interact. Will be updated with new vars.dockerWithSudo
(optional): Provide this argument if your docker needs a sudo prefix--withTerminal
(optional): Provide the terminal command prefix for CL and EL processes to run in your favourite terminal.You may use an alias or a terminal launching script as long as it waits for the command it runs till ends and then closes.If not provided, it will launch the docker processes in in-terminal mode.
--detached
(optional): By default the script will wait for processes and use user input (ctrl +c) to end the processes, however you can pass this option to skip this behavior and just return, for e.g. in case you just want to leave it running.Only one of
--withTerminal
or--detached
should be provided.