Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create container image for Apple Silicon M1/M2 #116

Open
hguerrero opened this issue Jul 19, 2023 · 8 comments
Open

Create container image for Apple Silicon M1/M2 #116

hguerrero opened this issue Jul 19, 2023 · 8 comments

Comments

@hguerrero
Copy link

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

@praveenkumar
Copy link
Member

@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
Copy link
Contributor

gbraad commented Jul 20, 2023

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
Copy link

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

@gbraad
Copy link
Contributor

gbraad commented Jul 20, 2023

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
Copy link
Contributor

adrianriobo commented Jul 20, 2023

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
Copy link
Contributor

gbraad commented Jul 20, 2023

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

@adrianriobo
Copy link
Contributor

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

@hguerrero
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants