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
How to use chromedp with docker-headless-shell #377
Comments
Hi, You don't need to use RemoteAllocator. Usually, the simplest solution is to run your Go binary from within the docker image with headless-shell, and then let chromedp execute headless-shell. I'll add this to the FAQ. |
@mvdan would you please give a small example on this in setting up a dockerized golang app with headless-shell ? Thanks |
Excuse me, have you solved it? |
With
|
@ZekeLu Do you recommend option 1 or option 2 ? 1: docker images size 260mb, is huge, I'm worried. 2: It's a lot smaller, but need to install chrome on the host in advance. |
I would choose option 1, because it will make it easy to deploy the app. And in my opinion, 260mb is not big (and far from huge 😄 ). If you install chrome on the host, it will take up remarkable spaces too (I don't know how much it will take, but the size of chrome-linux.zip for the latest build of Chromium is 140+MB). |
thank! Although each version needs 260mb, But it's very convenient ! so, take your advice , option 1 ! |
What versions are you running?
What did you do? Include clear steps.
Hi guys, I tried to look something using google but I couldn't find anything related to it.
If I use docker-headless-shell, how do I use
chromedp
to connect remotely to docker, go to a page and generate a pdf?I mean, I understood I should use
RemoteAllocator
but it would be nice to have an example if possible.It's basically help wanted. Thank you if you can answer me.
The text was updated successfully, but these errors were encountered: