Skip to content

Instantly share code, notes, and snippets.

@alexander-lazarov
Last active March 16, 2016 22:09
Show Gist options
  • Save alexander-lazarov/3851614fdd9ab33a1182 to your computer and use it in GitHub Desktop.
Save alexander-lazarov/3851614fdd9ab33a1182 to your computer and use it in GitHub Desktop.
Attempt to fix Xvfb-run crash when running selenium images
# replace with the specific selenium image you use
# the problem is with Xvfb, not the selenium server or the browser,
# so this fix should apply to all selenium images
FROM selenium/standalone-firefox
# attempt to fix this issue:
# https://github.com/SeleniumHQ/docker-selenium/issues/91
# switch to root so you can chmod the file
USER root
# this assumes you've set $DISPLAY to :99.0 (this is the default value, so if
# not sure please do not modify the line below)
RUN rm -rf /tmp/.X99-lock && chmod +x /opt/bin/entry_point.sh
# switch back to seluser after the chmod
USER seluser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment