scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.04k stars 507 forks source link

Splash not supported on M1/M2 silicon chips #1187

Open kulkarninidhii opened 5 months ago

kulkarninidhii commented 5 months ago

I was trying to run splash on my M2 silicon, but the v=3.5 is incompatible. WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Using rosetta2 to emulate the environment also doesnt help.

Can splash be only run on linux/amd64 or by building a new image with new Dockerfile?

lindafl0w commented 3 months ago

I have the same issue... @kulkarninidhii have you found a solution yet?

kulkarninidhii commented 3 months ago

No, I ended up using Playwright.

Hossamster commented 1 month ago

same issue, i did everything and it didn't work!

Hossamster commented 3 weeks ago

Hello @kulkarninidhii @lindafl0w I got the solution. ############

1. Install Homebrew (if not already installed):

Open Terminal and run the following command to install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. Install Colima:

Once Homebrew is installed, install Colima with:

brew install colima

3. Start Colima with AMD64 Emulation:

Start Colima with x86_64 (AMD64) architecture support:

colima start --arch x86_64

4. Run the scrapinghub/splash Docker Image:

With Colima running, you can now run the scrapinghub/splash image. Pull and run the image using Docker:

docker run --rm -p 8050:8050 scrapinghub/splash

that's it, scrappers. Regards, Hossam