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

Docker example in docs for lighthouse run is hanging #136

Open
tom-sanderson-bt opened this issue Oct 18, 2024 · 1 comment
Open

Docker example in docs for lighthouse run is hanging #136

tom-sanderson-bt opened this issue Oct 18, 2024 · 1 comment

Comments

@tom-sanderson-bt
Copy link

Using the example in docs for running lighthouse ie

docker run --shm-size=1g --rm -v "$(pwd):/sitespeed.io" sitespeedio/sitespeed.io:35.2.0-plus1 https://www.sitespeed.io/

It is getting stuck at Start collecting Lighthouse results . I have asked someone else and they are also seeing the same.

Can you help with what the issue is?

Screenshot 2024-10-18 at 13 28 52
@tom-sanderson-bt tom-sanderson-bt changed the title Example in docs is hanging Docker example in docs for lighthouse run is hanging Oct 18, 2024
@soulgalore
Copy link
Member

What OS are you using, is it a Mac ARM machine? I think the problem is that Google do not provide a Chrome/Chromium binary om arm64, so when Lighthouse installs Chrome, it gets a version that do not work on arm. For sitespeed.io we install a binary that is built for arm. You can try docker run --shm-size=1g --platform linux/amd64 --rm -v "$(pwd):/sitespeed.io" sitespeedio/sitespeed.io:35.2.0-plus1 https://www.sitespeed.io/. To get it to work you need to turn on Rosetta AMD emulation checkout https://www.sitespeed.io/documentation/sitespeed.io/docker/#running-on-mac-m1-arm.

There's sitespeedio/sitespeed.io#4302 that hopefully can fix so we run the laster Chromium version in the container but that will still only work for sitespeed.io since Lighthouse install its own Chrome version as it is now.

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

2 participants