-
Notifications
You must be signed in to change notification settings - Fork 606
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
TimeoutError, Docker configuration and ERR_CONNECTION_REFUSED #946
Comments
Unfortunately Docker networking is very complex. BackstopJS only supports a basic usecase. Anything more fancy I won't be able to help. Please feel Cheers! |
Just wanted to update that I got that issue while launching a physical browser and launched it headlessly, using browser-sync and then was able to run backstop test. Here are my parameters for backstop json. |
Nice! Thanks for sharing your config. |
Closing since these issues have been solved. |
Articles are totally cool -- thanks for posting! Do you mind if I link to them from the doc? Also, quick notes: I am pretty sure that And second: in some cases you may be able to avoid writing a config file by using the node invocation e.g. https://github.com/garris/BackstopJS/blob/master/README.md#pass-a-config-object-to-the-command Just some suggested options. Cheers |
Sure, thank you for linking them! |
@garris please let me know if you share the links, thanks ! |
Sorry for the delay -- thank you for the reminder! Just added! Cheers |
When running backstopjs from travis, I have many issues like follow:
Since tests pass on local, this issue is unique to the travis environment.
Hoping that it would resolve such errors, I'm trying to setup docker to run tests with --shm-size 512m.
But I'm having troubles configuring the /etc/hosts of the docker image.
Basically, I want backstop to query my nginx server using a specific local domain name, then have nginx forward the request to the backend server.
docker cannot query the domain name out of the box.
I tried adding the extra_hosts option to my docker-compose config file
But it results in new errors when running backstop
I also tried to play with networks, but unsure as to how I should configure it, I couldn't get it working.
I tried things like this:
Do you know how to properly update a docker-compose config to use BackstopJS with a specific domain name ?
Or might you know of a solution regarding the initial
TimeoutError
error so I can run backstopjs without docker from travis ?The text was updated successfully, but these errors were encountered: