Skip to content

Commit

Permalink
Revert "setup_vagrant.sh: Install phantomjs via APT"
Browse files Browse the repository at this point in the history
This reverts commit ba85fa3.

The APT package from the Ubuntu repository has too many
heavy dependencies. Install just the custom-packaged version.
  • Loading branch information
DeeDeeG committed Oct 5, 2018
1 parent 262a45b commit f54773c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup/setup_vagrant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -30,14 +31,20 @@ 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=(
["git"]=""
["libreadline-dev"]=""
["nodejs"]=""
["postgresql-server-dev-10"]=""
["phantomjs"]="2.1.1+dfsg-2"
["postgresql-contrib"]=""
["yarn"]=""
)
Expand Down

0 comments on commit f54773c

Please sign in to comment.