Created
January 29, 2016 04:27
-
-
Save fraserxu/c4ce8a17e46e1805ccb9 to your computer and use it in GitHub Desktop.
Steps to run tape-run on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start docker machine | |
docker-machine start dev | |
eval "$(docker-machine env dev)" | |
# run docker in interactive mode | |
docker run -i -t ubuntu:14.04.3 /bin/bash | |
# install node | |
apt-get install -y curl | |
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
# install tape-run | |
npm i -g tape-run | |
# checking missing dependencies | |
root@8aabd4ac0ce8:/# /usr/lib/node_modules/tape-run/node_modules/browser-run/node_modules/electron-stream/node_modules/electron-prebuilt/dist/electron --help | |
/usr/lib/node_modules/tape-run/node_modules/browser-run/node_modules/electron-stream/node_modules/electron-prebuilt/dist/electron: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory | |
# install missing dependencies | |
apt-get install -y libgtk2.0-0 libnotify-bin libgconf-2-4 libnss3 xvfb | |
# start xvfb server | |
export DISPLAY=':99.0' | |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
# start tape-run | |
$ root@8aabd4ac0ce8:/# echo "console.log('yo'); window.close()" | tape-run | |
yo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment