-
Notifications
You must be signed in to change notification settings - Fork 122
Chore: update rosetta dockerfile #1651
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
Conversation
This close to a full rewrite of the built image. - runit is removed - `/entrypoint.sh` now starts all processes via single script - all logs are piped to stdout - remove printf in favor of heredoc - add a script to seed the chainstate when env var `SEED_CHAINSTATE=true` - adds a postgres init script in case of genesis sync and DB != `postgres`
Codecov Report
@@ Coverage Diff @@
## develop #1651 +/- ##
========================================
Coverage 78.13% 78.13%
========================================
Files 79 79
Lines 11241 11241
Branches 2495 2495
========================================
Hits 8783 8783
Misses 2344 2344
Partials 114 114 |
zone117x
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wileyj! This looks super helpful. Awesome way to use the archives 💯
Left a couple minor comments, otherwise LGTM!
zone117x
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh there's also a few references to the file that need to be updated with the rename, this CI build in particular here:
| file: docker/stx-rosetta.Dockerfile |
The others are in markdown docs
got it - i'll address when i make the other changes |
updating docs where stx-rosetta is used add some docs around `SEED_CHAINSTATE` add -W to pg_ctl and removing sleep
zone117x
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @wileyj!
|
🎉 This PR is included in version 7.2.0-beta.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 7.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
This close to a full rewrite of the built image. The filename is also changed to a more appropriate
rosetta.Dockerfile/entrypoint.shnow starts all processes via single scriptSEED_CHAINSTATE=truepostgresType of Change
Does this introduce a breaking change?
N/A
Testing information
Tested by building the docker image and launching with:
In all cases, the chain progressed - of note, seeding the chainstate by supplying the env var:
SEED_CHAINSTATE=trueonly works if the archives for the defined versions exists (at this moment, there is not 2.3.0.0.2 archive available, but was tested with 2.3.0.0.1). Also note that the time to process an archive can be highly variable depending on the system.The other caveat to this change is that when
SEED_CHAINSTATE=true, the container will need to be launched with--shm-size.ex:
--shm-size=256MBElse, postgres will crash with an error regarding "out of space" (this applies to memory, not disk. details here: https://stackoverflow.com/questions/56751565/pq-could-not-resize-shared-memory-segment-no-space-left-on-device )