-
Notifications
You must be signed in to change notification settings - Fork 20
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
chore: added Dockerfile's and minor changes to rustfmt.toml #251
base: master
Are you sure you want to change the base?
Conversation
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.
For the Dockerfile's we should use cargo-chef
Here are some exmaples
https://github.com/paradigmxyz/reth/blob/main/Dockerfile
https://github.com/ethereum/trin/blob/master/docker/Dockerfile
Also conventional commits should be used https://www.conventionalcommits.org/en/v1.0.0/ https://gist.github.com/qoomon/5dfcdf8eec66a051ecd85625518cfd13 |
Any reason to prefer to chef? I don't have a strong preference to anything, just curious. |
It makes building the Dockerfile after changes a lot quicker https://github.com/LukeMathWalker/cargo-chef?tab=readme-ov-file#benefits-vs-limitations Do to how rust is, it is really hard to take advantage of DockerFile's native caching without it |
oh I just noticed you marked the PR as draft, I will wait to continue reviewing it |
It would be useful to have |
There is only one executable atm, no? why do we then need docker-compose? |
yes, I'll let you know as soon as its ready. |
Cargo.toml
Outdated
@@ -1,20 +1,20 @@ | |||
[workspace] | |||
|
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.
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.
Left some feedback
.dockerignore
Outdated
testing/ef_tests/ | ||
target/ | ||
*.data | ||
*.tar.gz |
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.
Dockerfile.cross
Outdated
COPY ./dist/bin/$TARGETARCH/ream /usr/local/bin/ream | ||
|
||
EXPOSE 8545 8546 | ||
ENTRYPOINT ["/usr/local/bin/ream"] |
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.
WORKDIR /app | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/reamlabs/ream | ||
LABEL org.opencontainers.image.description="Ream is a modular, open-source Ethereum beam chain client." |
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.
LABEL org.opencontainers.image.description="Ream is a modular, open-source Ethereum beam chain client." | |
LABEL org.opencontainers.image.description="Ream is a modular, open-source Ethereum Beam Chain client." |
Dockerfile.cross
Outdated
# This image is meant to enable cross-architecture builds. | ||
# It assumes the ream binary has already been | ||
# compiled for `$TARGETPLATFORM` and moved to `./bin`. | ||
FROM --platform=$TARGETPLATFORM ubuntu:22.04 |
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.
FROM --platform=$TARGETPLATFORM ubuntu:22.04 | |
FROM --platform=$TARGETPLATFORM ubuntu:24.04 |
Added