Install phantomjs in Docker container (#5368)

This commit is contained in:
Jesse Newland authored and Paulus Schoutsen committed 2017-01-16 22:55:42 -08:00
1 parent 65bf30643a
commit 41a6c35ea2
3 files changed
+19 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Sets up phantomjs to be used with Home Assistant.
# Stop on errors
set -e
PHANTOMJS_VERSION="2.1.1"
cd "$(dirname "$0")/.."
mkdir -p build && cd build
curl -LSO https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
tar -xjf phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
mv phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
/usr/bin/phantomjs -v