4 ms·
> not sure if k8s can run OCI, or if I can push OCI to a docker registry (artifactory) I push OCI images to AWS ECR, so it would probably work. > I'm on mac/a
by chriswarbo 5y ago
> not sure if k8s can run OCI, or if I can push OCI to a docker registry (artifactory)
I push OCI images to AWS ECR, so it would probably work.
> I'm on mac/arm but the images need to run on linux/amd64
I've never used the cross-compilation support in Nixpkgs. My work machine runs macOS (x86_64), so I have a Linux VM as a remote builder. I happen to use LimaVM ( https://github.com/lima-vm/lima https://github.com/lima-vm/lima ), but anything would work (Qemu, VirtualBox, the VM bundled with Docker Desktop, etc.).
PS: Since containers only work on Linux, and I'm often working on macOS, I use the following assertion to check that I'm not accidentally including Mac builds in a layer:
assert all (d: ((d.type or null) == "derivation") -> (d.system == "x86_64-linux")) drvs;