docker: Support pregenerated keys in docker private networks#5735
Merged
gmalouf merged 1 commit intoalgorand:masterfrom Sep 21, 2023
Merged
docker: Support pregenerated keys in docker private networks#5735gmalouf merged 1 commit intoalgorand:masterfrom
gmalouf merged 1 commit intoalgorand:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5735 +/- ##
==========================================
+ Coverage 54.49% 55.57% +1.08%
==========================================
Files 476 476
Lines 66853 66853
==========================================
+ Hits 36429 37156 +727
+ Misses 27876 27177 -699
+ Partials 2548 2520 -28
... and 41 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
onetechnical
approved these changes
Sep 21, 2023
gmalouf
approved these changes
Sep 21, 2023
This was referenced Oct 13, 2023
This file contains hidden or 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
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.
Summary
Docker changes:
#5699
Test Plan
Pregenerate keys with
goal:goal network pregen -t some_template.json -p pregenPregenerate keys with
docker:docker run --rm -it \ -v /path/to/your/template.json:/etc/algorand/template.json \ -v $(pwd)/pregen:/algod/pregen \ --entrypoint "/node/bin/goal" \ algorand/algod:nightly network pregen -t /etc/algorand/template.json -p /algod/pregenBuild the image (from root dir):
docker build \ -t wwinder/algod:pregen-test \ --build-arg CHANNEL=nightly \ --build-arg TARGETARCH=amd64 --no-cache \ .Run (mounting the template and pregen directory):
docker run --rm -it --name algod-pregen-run \ -v /path/to/your/template.json:/etc/algorand/template.json \ -v $(pwd)/pregen:/etc/algorand/keys \ wwinder/algod:pregen-testOn my machine, I used a
template.jsonwith 10 million keys. Pregen took nearly 20 minutes. The network start was almost instantaneous.