-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use latest Rust in Alpine 3.15 image #74
Conversation
Fixes build errors in prisma-engines due to Rust 1.65 being too old.
RUN cd openssl-1.1.1s && make install | ||
RUN cd openssl-1.1.1v && ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && make -j8 | ||
|
||
RUN cd openssl-1.1.1v && make install_sw install_ssldirs |
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.
Changed make install
to make install_sw install_ssldirs
to skip installing docs. This makes building the image significantly faster, installing docs takes way more time than compiling and also takes space in the image.
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 side effect of this PR!
|
||
RUN apk update && \ | ||
apk add perl musl-dev build-base bash clang git protoc protobuf protobuf-dev wget linux-headers | ||
apk add perl musl-dev build-base bash curl clang git protoc protobuf protobuf-dev linux-headers |
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.
+1 for using curl
rather than wget
😺
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 copy-pasted the rustup command with curl
so I changed the other download to use curl too 🤷
I don't have a strong preference either way.
Musl tests passed, we can merge. Great job @aqrln! |
Fixes build errors in prisma-engines due to Rust 1.65 being too old.