diff --git a/setup/setup_vagrant.sh b/setup/setup_vagrant.sh index c27731d9..8643c0bd 100644 --- a/setup/setup_vagrant.sh +++ b/setup/setup_vagrant.sh @@ -4,6 +4,7 @@ set -e REFUGE_PATH=/vagrant +PHANTOM_JS=2.1.1 # Add the apt repository for yarn echo 'Adding the Yarn APT repository' @@ -30,6 +31,13 @@ sudo apt-get install -y chrpath libssl1.0-dev libxft-dev && \ sudo apt-get install -y libfreetype6 libfreetype6-dev && \ sudo apt-get install -y libfontconfig1 libfontconfig1-dev +# Install Phantom JS +export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" && \ + wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 && \ + tar xvjf $PHANTOM_JS.tar.bz2 && \ + sudo mv $PHANTOM_JS /usr/local/share && \ + sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin + # required packages declare -A packages packages=( @@ -37,7 +45,6 @@ packages=( ["libreadline-dev"]="" ["nodejs"]="" ["postgresql-server-dev-10"]="" - ["phantomjs"]="2.1.1+dfsg-2" ["postgresql-contrib"]="" ["yarn"]="" )