Skip to content

Instantly share code, notes, and snippets.

@gpolyn
Last active August 29, 2015 14:03
Show Gist options
  • Save gpolyn/8e06dfda461ebaea0eb5 to your computer and use it in GitHub Desktop.
Save gpolyn/8e06dfda461ebaea0eb5 to your computer and use it in GitHub Desktop.
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get -y install wget
RUN apt-get -y install fontconfig
RUN apt-get install -y -q python-software-properties python python-setuptools python-virtualenv python-dev python-distribute python-pip
WORKDIR /usr/local/src/phantomjs
RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN tar xvf phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN sudo ln -sf /usr/local/src/phantomjs/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
RUN apt-get -y install git
WORKDIR /usr/local/src
RUN git clone git://github.com/n1k0/casperjs.git
RUN sudo ln -sf /usr/local/src/casperjs/bin/casperjs /usr/local/bin/casperjs
RUN echo "fuck you"
RUN git clone -b master https://github.com/gpolyn/mywebapp /mywebapp
CMD if [ -z $BRANCH ]; then BRANCH=master; fi; \
cd /mywebapp \
&& git checkout $BRANCH \
&& git pull \
&& casperjs test test/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment