forked from davidofwatkins/ge-cancellation-checker
-
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.
Adding a Dockerfile and updating README
- Loading branch information
Victor Trac
committed
Jun 10, 2016
1 parent
6b7a083
commit cbdf2ae
Showing
2 changed files
with
40 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu:12.04 | ||
|
||
MAINTAINER cmfatih | ||
|
||
# Env | ||
ENV PHANTOMJS_VERSION 1.9.7 | ||
|
||
# Commands | ||
RUN \ | ||
apt-get update && \ | ||
apt-get upgrade -y && \ | ||
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 && \ | ||
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 && \ | ||
apt-get clean all | ||
|
||
|
||
ADD . /opt/ge_checker | ||
|
||
VOLUME ["/logs"] | ||
|
||
WORKDIR /opt/ge_checker | ||
|
||
CMD ["/usr/bin/phantomjs", "--ssl-protocol=any", "ge-cancellation-checker.phantom.js", "-v"] |
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