Skip to content
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

Merged
merged 1 commit into from
Aug 14, 2023
Merged

Use latest Rust in Alpine 3.15 image #74

merged 1 commit into from
Aug 14, 2023

Conversation

aqrln
Copy link
Member

@aqrln aqrln commented Aug 14, 2023

Fixes build errors in prisma-engines due to Rust 1.65 being too old.

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
Copy link
Member Author

@aqrln aqrln Aug 14, 2023

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.

Copy link
Collaborator

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
Copy link
Collaborator

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 😺

Copy link
Member Author

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.

@jkomyno
Copy link
Collaborator

jkomyno commented Aug 14, 2023

Musl tests passed, we can merge. Great job @aqrln!

@aqrln aqrln merged commit 5e91768 into main Aug 14, 2023
@aqrln aqrln deleted the musl-1.1.x-update-rust branch August 14, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants