Disable Rust dependencies while building cryptography for Docker #1611
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes ARM builds for Docker (using one of two available approaches, see details below) (related to #1579 and #1606).
Solve the issue: #1579
Changelog
What's new?
Due to cryptography's recent dependencies on Rust (pyca/cryptography#5771), Raspberry Pi's arm/v7 platform (among others) became unsupported. In order to fix that, there are currently two available approaches:
CRYPTOGRAPHY_DONT_BUILD_RUST=1
(chosen in this case)2.6.1
works fine for me in other projects)You can see that when I've tried to build it using the Dockerfile I've customized it seems that the build has gone OK but, unfortunately, there's this issue:
Fortunately, this isn't related to the Docker image itself, but this: docker/buildx#59.
The purpose of this PR is to find out if this change to the Dockerfile is acceptable. If so, I can implement what is missing.