Closed ghost closed 7 years ago
Docker runs with port
127.0.0.1:8080:8080
In readme example:
HOST = '127.0.0.1' PORT = 9222
Can you explain what port should I use in my program?
Just to clarify, are you trying to run chromewhip as a service deploying as a Docker container, or you want to run the low-level driver that the chromewhip service uses?
As you are using that code snippet from the README, I am assuming the low-level driver. The low-level driver doesn't require docker at all, just a Python 3.6 environment (though one may want to run their environment in a docker container)
It looks like you are running a Python 3.6 environment on Windows, which isn't really supported and I am unable to test on my end.
Despite that, the README is unclear on how to run that code, which I will fix very soon, probably over the weekend. Just skimming over it, AFAIR it assumes that you are running a Google Chrome process with --remote-debugging-address=127.0.0.1
and --remote-debugging-port=9222
flags.
Thanks for your answer. I thought that your lib relies on some code running in docker container. So I have to start docker container, then your lib connects to port 8080 and uses Chrome builtin in the container.
Eventually, I just missed starting Chrome with --remote-debugging-port=9222
flag on my system.
It will be nice if you make documentation more verbose.
I am trying to launch code from your readme. Docker container was started using the command:
run --init -it --rm --shm-size=1024m -p 127.0.0.1:8080:8080 --cap-add=SYS_ADMIN chuckus/chromewhip
Error in line:
loop.run_until_complete(c.connect())
I am using Native Docker for Windows, probably it can be a problem
Traceback: