StarlingUAS / ProjectStarling

BRL Flight Arena Infrastructure 2.0
Other
16 stars 3 forks source link

Fix local multi-platform builds #53

Closed rob-clarke closed 3 years ago

rob-clarke commented 3 years ago

PR #51 introduced new build scripts. Unfortunately the local multi-platform variant appears to be having some issues.

The issue seems to centre around the use of lsb_release when running under the emulator for the ARM64 builds.

rob-clarke commented 3 years ago

Inspired by this comment: https://github.com/docker/buildx/issues/493#issuecomment-754834977

I had success following the instructions here: https://github.com/tonistiigi/binfmt#installing-emulators

I ran:

docker run --privileged --rm tonistiigi/binfmt --install arm64

If that doesn't work you may want to try running the command below for all the emulators listed in the output of the initial run.

docker run --privileged --rm tonistiigi/binfmt --uninstall $EMULATOR