simkube icon indicating copy to clipboard operation
simkube copied to clipboard

Building on a non-Intel MacBook produces ARM64 images which won't run in an x86_64 cluster

Open drmorr0 opened this issue 2 years ago • 2 comments

Describe the bug

Building sk-ctrl, sk-tracer, and sk-driver on an ARM64 MacBook builds ARM64 binaries even with the ubuntu:latest Docker build image selected. We need to cross-compile for x86_64 in this case.

Steps to reproduce

  1. make build img on an ARM MacBook
  2. try to deploy the images to an x86_64 cluster

Expected behavior

It should work

drmorr0 avatar Mar 01 '24 07:03 drmorr0

@BigValen has a branch which possibly fixes this, or at least makes it easier:

https://github.com/BigValen/simkube/blob/master/Makefile

Would be nice to also have some instructions for how to use.

drmorr0 avatar Mar 01 '24 07:03 drmorr0

Also it would be nice if we can add automated tests for this in GitHub actions.

drmorr0 avatar Mar 01 '24 07:03 drmorr0