Add phantomjs2 images

We want to keep the old images so the current stable and patch releases continue to work.
This commit is contained in:
DJ Mountney 2016-08-12 11:11:59 -07:00 committed by Z.J. van de Weg
parent 48e6679688
commit ba27de2fd4
5 changed files with 33 additions and 3 deletions

View file

@ -3,6 +3,9 @@
set -xeo pipefail
cd /tmp
wget -q https://gitlab.com/axil/phantomjs-debian/raw/master/phantomjs_1.9.8-0jessie_amd64.deb
dpkg -i phantomjs_1.9.8-0jessie_amd64.deb
rm /tmp/*
PHANTOMJS_VERSION=${1:-1.9.8}
PHANTOMJS_FILE="phantomjs-$PHANTOMJS_VERSION-linux-x86_64"
curl -L "https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_FILE.tar.bz2" | tar jx
cp "$PHANTOMJS_FILE/bin/phantomjs" "/usr/bin/"
rm -rf /tmp/*