Skip to content

Instantly share code, notes, and snippets.

@kfatehi
Created January 6, 2014 17:02
Show Gist options
  • Save kfatehi/8285915 to your computer and use it in GitHub Desktop.
Save kfatehi/8285915 to your computer and use it in GitHub Desktop.
Xvfb launcher script for insert into docker image
#!/bin/bash
export DISPLAY=:99
/etc/init.d/xvfb start
sleep 1
$@
exit_value=$?
/etc/init.d/xvfb stop
exit $exit_value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment