crc-org / crc-cloud

Disposable OpenShift instances on cloud in minutes
31 stars 19 forks source link

Create container image for Apple Silicon M1/M2 #116

Open hguerrero opened 1 year ago

hguerrero commented 1 year ago

Current container image is linux/x86_64. An new image is required for Apple Mac with Silicon M1/M2 processors.

praveenkumar commented 1 year ago

@hguerrero we only created linux images to consume this project as part of CI, what is the requirement for having it for M1/M2?

gbraad commented 1 year ago

Please have a look at: https://github.com/crc-org/crc-cloud/blob/main/oci/Containerfile ? You are free to provide an Aarch64/Arm64 compatible version.

You would have to do some trickery around:

RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \

for Pulumi and the binary.

cfergeau commented 1 year ago

On M1/M2, I'd recommend using https://github.com/crc-org/crc directly. Or do you have a very different usecase?

gbraad commented 1 year ago

I believe he wants to trigger the job from his local machine, though it might be helpful to just set up a coordination VM

adrianriobo commented 1 year ago

coordination VM

you mean for running the container?, I mean if it is not a big deal support the container on arm64 archs I though it would be great as we would support more targets

gbraad commented 1 year ago

right, but I see this as a low priority. it is more like a 'nice to have' than a hard requirement.

adrianriobo commented 1 year ago

yeah but as you said even if he wants to contribute on that regard that would be great :)

hguerrero commented 1 year ago

For a simpler starting experience, it is simpler to merely construct a container image that is compatible with M1/M2 due to the requirements to install Pulumi and other components. For demonstration purposes, I only need to manually trigger an instance in my situation.