Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

fix: Docker warning when using frapsoft/openssl on arm64 system #335

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

DRK3
Copy link
Collaborator

@DRK3 DRK3 commented Sep 15, 2022

Resolved a warning from Docker that would get printed when running the generate-test-keys Makefile target on an arm64 system. The warning from Docker alerts you that the image for frapsoft/openssl is for amd64, which doesn't match the system you're on (when using an arm64-based OS). To resolve the warning, you have to either use an image that matches the system architecture, or explicitly state the platform using the --platform flag. In this case, there is only an amd64 version of frapsoft/openssl, so I added the explicit flag to resolve the warning. I also added a TODO for us to find an arm64 alternative in the future (although the amd64 version of frapsoft/openssl does seem to work fine on arm64 Mac OS currently, presumably due to Apple's Rosetta translation layer or some other emulation layer).

Signed-off-by: Derek Trider Derek.Trider@securekey.com

Resolved a warning from Docker that would get printed when running the generate-test-keys Makefile target on an arm64 system. The warning from Docker alerts you that the image for frapsoft/openssl is for amd64, which doesn't match the system you're on (when using an arm64-based OS). To resolve the warning, you have to either use an image that matches the system architecture, or explicitly state the platform using the --platform flag. In this case, there is only an amd64 version of frapsoft/openssl, so I added the explicit flag to resolve the warning. I also added a TODO for us to find an arm64 alternative in the future (although the amd64 version of frapsoft/openssl does seem to work fine on arm64 Mac OS currently, presumably due to Apple's Rosetta translation layer or some other emulation layer).

Signed-off-by: Derek Trider <Derek.Trider@securekey.com>
@cla-bot cla-bot bot added the cla-signed label Sep 15, 2022
@codecov
Copy link

codecov bot commented Sep 15, 2022

Codecov Report

Merging #335 (1a115fe) into main (569b5e2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #335   +/-   ##
=======================================
  Coverage   87.11%   87.11%           
=======================================
  Files          26       26           
  Lines        2150     2150           
=======================================
  Hits         1873     1873           
  Misses        176      176           
  Partials      101      101           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fqutishat fqutishat merged commit 4a6a1f1 into trustbloc:main Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants