balena-io-hardware / autokit-interface-sw

Apache License 2.0
5 stars 2 forks source link

Use variables in the Dockerfile in order to support multiple architectures #27

Closed phckopper closed 1 year ago

phckopper commented 1 year ago

Currently, the armv7hf architecture is hardcoded in our Dockerfile.template, preventing us from running Autokit on devices that should otherwise support it.

https://github.com/balena-io-hardware/autokit-sw/blob/0c8b3e1e4e5a3cd9df866833dbd8e9176473f82a/Dockerfile.template#L1

As far as I know, there is no architecture-dependent code anywhere in this repo. @rcooke-warwick please correct me if I'm wrong. Being able to build this container on x86 architectures would speed up the development process and allow us to use the more easily sourceable Intel NUCs.

Relevant docs: https://www.balena.io/docs/learn/develop/dockerfile/