acrlabs / simkube

Record-and-replay Kubernetes simulator based on KWOK
https://appliedcomputing.io/simkube
MIT License
164 stars 7 forks source link

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

Open drmorr0 opened 4 months ago

drmorr0 commented 4 months ago

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 commented 4 months ago

@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 commented 4 months ago

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