Skip to content

Instantly share code, notes, and snippets.

@nddipiazza
Last active March 6, 2018 17:50
Show Gist options
  • Select an option

  • Save nddipiazza/a03b90f7ecb65ec7df472a6c9317258e to your computer and use it in GitHub Desktop.

Select an option

Save nddipiazza/a03b90f7ecb65ec7df472a6c9317258e to your computer and use it in GitHub Desktop.
sudo docker run -t -d -p 8765:8765 -p 8984:8984 -p 8983:8983 -p 8764:8764 --shm-size=2g --name testzombies openjdk:8u151-jdk
sudo docker exec -i -t testzombies /bin/bash
apt-get -y --fix-missing update && \
apt-get -y --fix-missing upgrade && \
apt-get -y --no-install-recommends install apt-utils && \
apt-get install -y wget lbzip2 git openjdk-8-jdk libdbus-glib-1-2 xvfb libgtk-3.0 procps gradle psmisc
wget https://download-installer.cdn.mozilla.net/pub/devedition/releases/59.0b14/linux-x86_64/en-US/firefox-59.0b14.tar.bz2
tar xvf firefox-59.0b14.tar.bz2
wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz
tar xzvf geckodriver-v0.19.1-linux64.tar.gz
git clone https://github.com/nddipiazza/test-javascript-web-evaluator
gradle -p test-javascript-web-evaluator build
java -jar ./test-javascript-web-evaluator/build/libs/test-javascript-web-evaluator-1.0-SNAPSHOT.jar 7001 > wslog1.log 2>&1 &
java -jar ./test-javascript-web-evaluator/build/libs/test-javascript-web-evaluator-1.0-SNAPSHOT.jar 7002 > wslog2.log 2>&1 &
java -jar ./test-javascript-web-evaluator/build/libs/test-javascript-web-evaluator-1.0-SNAPSHOT.jar 7003 > wslog3.log 2>&1 &
git clone https://github.com/nddipiazza/reproduce-firefox-zombies
gradle -p reproduce-firefox-zombies build
cp reproduce-firefox-zombies/requestcounter.xpi .
java -jar /reproduce-firefox-zombies/build/libs/reproduce-marionette-timeouts-1.0-SNAPSHOT.jar http://localhost:7001 15 /firefox/firefox > sel1.log 2>&1 &
java -jar /reproduce-firefox-zombies/build/libs/reproduce-marionette-timeouts-1.0-SNAPSHOT.jar http://localhost:7002 15 /firefox/firefox > sel2.log 2>&1 &
java -jar /reproduce-firefox-zombies/build/libs/reproduce-marionette-timeouts-1.0-SNAPSHOT.jar http://localhost:7003 15 /firefox/firefox > sel3.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment