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

Should I Install Chrome or Chromium In AWS For Production On Linux? #1090

Open
hafiihzafarhana opened this issue Jul 15, 2024 · 4 comments
Open
Labels
question Questions related to rod

Comments

@hafiihzafarhana
Copy link

hafiihzafarhana commented Jul 15, 2024

image

above say can automatically to download or find the browser. Does this feature apply to production stages like on AWS?

Or we should install manual on the AWS Linux?

v0.116.2

@hafiihzafarhana hafiihzafarhana added the question Questions related to rod label Jul 15, 2024
Copy link

Please add a valid Rod Version: v0.0.0 to your issue. Current version is v0.116.2

generated by check-issue

@ysmood
Copy link
Member

ysmood commented Jul 16, 2024

Yes, as long as your process can access internet. It will download the version specified here, you can also config which version to download:

// Browser is a helper to download browser smartly.
type Browser struct {

For each rod, the version to download is fixed, so that there will be no cdp api mismatch.
Better to use Chromium, since all the unit tests on CI are using Chromium.

@hafiihzafarhana
Copy link
Author

How about if I use the Docker image of go-rod (ghcr.io/go-rod/rod:v0.116.2)? is it not enough?

I think Docker image of go-rod includes chrome

https://github.com/go-rod/rod/blob/01a50b925312b71fc59f6eb0d8f489a5195ec448/lib/docker/Dockerfile :

RUN ln -s /root/.cache/rod/browser/$(ls /root/.cache/rod/browser)/chrome /usr/bin/chrome

@ysmood
Copy link
Member

ysmood commented Jul 17, 2024

Yes, if you use the same version of go-rod image, rod won't download the browser again.

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

No branches or pull requests

2 participants