-
Notifications
You must be signed in to change notification settings - Fork 202
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
Update the base image for ci-build's Dockerfile #2674
Conversation
This commit adds a dependency on `openssl` to force a more recent `openssl-sys` crate to be brought in. Without it, `cargo minimal-versions check` on `aws-smithy-client` with `native-tls` enabled would fail in a container whose base image is `amazonlinux:2023` due to the old `openssl-sys` v0.9.39 trying to build OpenSSL 3.0.8, which would not work. See sfackler/rust-openssl#1724.
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
1 similar comment
A new generated diff is ready to view.
A new doc preview is ready to view. |
…thub.com/awslabs/smithy-rs into ysaito/upgrade-base-image-for-dockerfile
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
Motivation and Context
The PR will be a draft until #2675 is merged intomain
. Once that's merged, this PR can remove the change toCargo.toml
inaws-smithy-client
.Now that it's passed tests in CI, ysaito1001 will merge this PR once it has passed the internal tests
Fixes #2500.
Description
This PR updates the base image for ci-build's Dockerfile as the latest image for amazonlinux has been updated to 2023.
As part of it, the changes to Dockerfile include
--allowerasing
Without it, we'd get an error as follows:
Without
perl
, we'd get an error as follows:Also, there is a change to
Cargo.toml
inaws-smithy-client
:aws-smithy-client
withnative-tls
feature to use a more recentopenssl-sys
crateWithout it,
cargo minimal-versions check
would fail inaws-smithy-client
trying to buildopenssl-sys
v0.9.39 where OpenSSL in a container is more up-to-date, leading to a build failure (See this issue for more details)Finally, updating CI for
Run Tests on Windows
openssl
as suggested. Without it, after introducing a more recentopenssl
0.10.52dev-dependencies
inaws-smithy-client
, we'd get this on Windows:By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.