fyoorer / ShadowClone

Unleash the power of cloud
Apache License 2.0
672 stars 86 forks source link

[Documentation] Apple Silicon Users #21

Open vysecurity opened 1 year ago

vysecurity commented 1 year ago

Installation Notes for Passerby Apple Silicon Users

You may have noticed that the build breaks at lithops runtime build sc-runtime -f Dockerfile. Documenting this information here so that others can get it installed properly.

brew install python@3.9

Modify Dockerfile references:

FROM

to

FROM --platform=linux/amd64

Run the build:

lithops runtime build sc-runtime -f Dockerfile
abdilahrf commented 1 year ago

I got this error after running the build : lithops runtime build sc-runtime -f Dockerfile

Screen Shot 2023-05-04 at 12 24 49 AM
masonhck357 commented 1 year ago

This is exaxctly what I am coming accross.

image
fyoorer commented 1 year ago

I don't have a Apple M1 machine so no idea really. @vysecurity any idea what these errors could be?

vysecurity commented 1 year ago

Is your Docker set up correctly on M1? There's an experimental feature to use the faster version of x64 if I recall. Maybe it's that?

Docker Desktop-2023-05-05 at 10 04 05@2x

Note that using Rosetta is way faster than QEMU so there's no reason to go back anyway.

gustavorobertux commented 1 week ago

I got this error after running the build : lithops runtime build sc-runtime -f Dockerfile

Screen Shot 2023-05-04 at 12 24 49 AM

Install and run the docker in your machine ;)

abdilahrf commented 1 week ago

@gustavorobertux I solve that by using linux machine, Apple Mac M1 Silicone docker is not working well this the docker build architecture.