forked from YACS-RCOS/yacs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix phantomjs install (uses release on phantomjs github, see https://…
- Loading branch information
1 parent
5c07257
commit 72bf7f4
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,24 @@ FROM ruby:2.2.3 | |
|
||
MAINTAINER Richie Young <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -qq -y build-essential nodejs --fix-missing --no-install-recommends | ||
RUN apt-get update && apt-get install -qq -y build-essential nodejs wget --fix-missing --no-install-recommends | ||
|
||
ENV PHANTOMJS_VERSION 1.9.7 | ||
ENV PHANTOMJS_VERSION 2.1.1 | ||
RUN \ | ||
apt-get install -y vim git wget libfreetype6 libfontconfig bzip2 && \ | ||
mkdir -p /srv/var && \ | ||
wget -q --no-check-certificate -O /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 && \ | ||
# mkdir -p /srv/var && \ | ||
wget -q --no-check-certificate -O /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 https://github.com/paladox/phantomjs/releases/download/2.1.7/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \ | ||
tar -xjf /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C /tmp && \ | ||
rm -f /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 && \ | ||
mv /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/ /srv/var/phantomjs && \ | ||
ln -s /srv/var/phantomjs/bin/phantomjs /usr/bin/phantomjs && \ | ||
git clone https://github.com/n1k0/casperjs.git /srv/var/casperjs && \ | ||
ln -s /srv/var/casperjs/bin/casperjs /usr/bin/casperjs && \ | ||
apt-get autoremove -y | ||
mv /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin/phantomjs /usr/bin/phantomjs | ||
# ln -s /srv/var/phantomjs/bin/phantomjs /usr/bin/phantomjs && \ | ||
# git clone https://github.com/n1k0/casperjs.git /srv/var/casperjs && \ | ||
# ln -s /srv/var/casperjs/bin/casperjs /usr/bin/casperjs && \ | ||
# apt-get autoremove -y | ||
|
||
#RUN wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 | ||
#RUN tar -xjf phantomjs-2.0.0-ubuntu-12.04.tar.bz2 | ||
#RUN mv phantomjs /usr/local/phantomjs/bin/phantomjs | ||
|
||
ENV INSTALL_PATH /usr/src/app/ | ||
RUN mkdir -p $INSTALL_PATH | ||
|