-
-
Notifications
You must be signed in to change notification settings - Fork 426
Problems with webkit_server through Docker #912
Comments
I have now read through the installation instructions in the wiki but it didn't help. My Dockerfile now looks like
|
Is it possible that you're providing vendored/compiled gems from the host system or a different Docker container? If the necessary libraries aren't present, capybara-webkit can't compile, so it looks like it was compiled when the libraries were available but then run in an environment where they weren't. How are you running |
Yes I am installing gems into another container that runs Any ideas how I would fix that? |
I haven't worked with that particular Docker workflow, but you'll need to compile capybara-webkit on a host that has the linked libraries at the same locations as the host you're going to run the tests on. This doesn't look like a bug in capybara-webkit, so I'm going to close this issue. Feel free to continue commenting if you have further questions or ideas. |
I've spent lots of time trying to solve this issue.
It seems capybara needs a X Server, so that's for it. Make sure you have In case your docker base image is CentOs, you may need run one more step.
You can do this either adding a RUN at your Dockerfile or running it before a test. |
I'm seeing the following error for tests that have
:js
The command I run is
docker-compose run web bin/rspec spec/features
.Dockerfile:
docker-compose.yml:
If I jump into the container with
docker-compose run web bash
and runweb_server
manually I see thisI have tried using headless as described here but that didn't work.
Any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: