-
Notifications
You must be signed in to change notification settings - Fork 64
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
Create single docker image for rollups node #85
Conversation
74addca
to
661b794
Compare
fd2e8d4
to
dac33cc
Compare
dac33cc
to
065235b
Compare
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.
Nice job!
Do you think it's too much job to keep publishing individual images?
Something like that would be enough, I think.
FROM cartesi/rollups-node as rollups-indexer
ENTRYPOINT [ "/opt/cartesi/bin/cartesi-rollups-indexer"]
This way, the impact on helm-chart and examples would be minimal.
I'd rather not, it should be easy do adapt the examples (and probably the helmcharts). In fact, I will create a branch in examples to test this PR. |
0aa759d
to
b2d06cb
Compare
Instead of building it manually again
Reduce the binary sizes from 67M to 43M in the final docker image.
b2d06cb
to
2b974ee
Compare
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.
Looking good, just a minor comment
When executing
|
- Removed previous docker images - Created new docker image with all binaries - Moved build files to build directory
2b974ee
to
292ff68
Compare
Got some error building it locally
|
@endersonmaia, this is not related to this PR. I think this was caused by #56. |
@fmoura I changed the grpc-interfaces location because it is now only used in one place. You need to download the submodule again with |
Created a separate PR for this PR#87 |
I tested it with examples, and it works as expected. The changes to examples are in the following commit cartesi/rollups-examples@main...feature/rollups-node-image |
Close #65