ops icon indicating copy to clipboard operation
ops copied to clipboard

ops image create missing arm switch

Open eyberg opened this issue 2 years ago • 4 comments

it appears 'ops run' is intelligent enough to run (prob based on underlying arch) but need the ability to do images as well

I don't think there are any outstanding blockers to do cross-arch builds via flag (eg: x86 to arm) as native mkfs support was added to ops

eyberg avatar Jan 31 '22 17:01 eyberg

should we consider adding a --arch flag to ops image create command?

girishramnani avatar Jan 31 '22 19:01 girishramnani

I think the default should be whatever underlying architecture the user is on currently but yeh I'd be in favor of having an arch flag; just not sure how many people would actually take advantage of that since the underlying binary still needs to be tied to the arch of choice

eyberg avatar Jan 31 '22 20:01 eyberg

PR #1265 auto get architecture based on "CloudConfig.Flavor"

ponokys avatar Feb 09 '22 09:02 ponokys

just to be clear this is in the use-case that someone is sitting on an x86 box and wants to build arm images with say a statically linked go arm binary (or vice-versa) - the #1265 only covers the case where you are building against aws on the same architecture - it doesn't actually know that you have a local x86 or arm build - it assumes you are on arm already

eyberg avatar Feb 09 '22 16:02 eyberg

https://github.com/nanovms/ops/pull/1380 adds support for downloading and using arm builds for arm related targets - also allows just grabbing latest arm release

eyberg avatar Sep 28 '22 21:09 eyberg