-
Notifications
You must be signed in to change notification settings - Fork 76
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
fix: dockerfile -- bump rust version & add build pkgs #214
Conversation
@ralexstokes need your touch to resolve lint checks |
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.
looks great, thanks for this! I usually don't use docker so this has gotten a bit stale...
do you mind checking on a way to load the intended rust image from the rust toolchain file? I could see this being supported somewhat right out of the box
Dockerfile
Outdated
@@ -1,4 +1,15 @@ | |||
FROM rust:1.67-bullseye AS chef | |||
FROM rust:1.77-bullseye AS chef |
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.
im not sure if this is worth the complexity but it would be great if we could just read the rust-toolchain.toml
file to load the current MSRV
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.
I didn't found an approach to use rust version in Dockerfile, mb you can point me on some resources?
For now I added lukemathwalker/cargo-chef:latest-rust-slim-bullseye
image
RUN set -x \ | ||
&& apt-get -qq update \ | ||
&& apt-get -qq -y install \ | ||
clang \ | ||
cmake \ | ||
libudev-dev \ | ||
libssl-dev \ | ||
pkg-config \ | ||
zlib1g-dev |
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.
these look fine but ill want to review the docker file to make sure these are all required (thinking about recent xz
situation)
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.
I've tried to find unnecessary packages incrementally, but all of them seems mandatory🤔
@sarmatdev looks like some new linter errors due to a new nightly version... I'll try to get to these in the next few days |
yeah, the docker file is outdated and needs some more dependencies... I have and expect to maintain the https://mitchellh.com/writing/nix-with-dockerfiles you should be able to use the nix flake from the repo root, so just need to update the dockerfile |
closing in lieu of #219 (also I took a look at the nix route above and it was a bit more complicated than I would like...) |
Bump
rust
version, required bycargo-chef
Introduced set of build packages for compilation