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

Error running chimp in docker container using chrome headless #519

Closed
farcari opened this issue Oct 28, 2016 · 3 comments
Closed

Error running chimp in docker container using chrome headless #519

farcari opened this issue Oct 28, 2016 · 3 comments

Comments

@farcari
Copy link

farcari commented Oct 28, 2016

Expected behaviour

Chimp tests runs correctly using chrome headless in docker container.

Actual behaviour

I try to run tests in docker container (here dockerfile https://gist.github.com/arcarocollo/1b667b12e8101c525ce25831377757be) but they doesn't works, a cucumber handler(BeforeFeatures) is in timeout and all tests doesn't running.
Using phantomjs error does not appearing.

Exact steps to reproduce / repository that demonstrates the problem
  1. build docker image
  2. run docker image and go in with bash command (docker build -it /bin/bash)
  3. start chimp with ./node_modules/.bin/chimp --debug
Version & tools:
  • Chimp command line used: /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x800x16 && sleep 3 && export DISPLAY=:99.0 && ./node_modules/.bin/chimp --debug
  • Chimp config file: https://gist.github.com/arcarocollo/9b62ecccd503ed8bbbf2ada7dddade30
  • Chimp: 0.41.2
  • Node.js: v6.9.1
  • Java: 1.8.0_111
  • Operation system: Debian GNU/Linux 8
Console / Log Output

https://gist.github.com/arcarocollo/8ee4b4f08f5bc4f74b607cee2821e50f

@farcari
Copy link
Author

farcari commented Nov 4, 2016

I found the solution.
I run docker with --privileged attribute like this:
docker run --privileged <imageName> ./node_modules/.bin/chimp --debug

@farcari farcari closed this as completed Nov 4, 2016
@SimonSimCity
Copy link

@arcarocollo could you please post your docker file? I'm also struggling with getting this going but I doubt it's the --privileged attribute I missed. Same to your chimp config ...

@SimonSimCity
Copy link

Got it working without --privileged 😉 See: Got it working. If anyone needs the steps it took me: https://github.com/SimonSimCity/bitbucket-meteor-headless-browsers - which is based on https://github.com/SimonSimCity/bitbucket-meteor/blob/master/Dockerfile (which in turn is based on Ubuntu 14.10)

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

No branches or pull requests

2 participants