mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Install phantomjs in Docker container (#5368)
This commit is contained in:
parent
65bf30643a
commit
41a6c35ea2
@ -7,7 +7,7 @@ RUN mkdir -p /usr/src/app
|
|||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Copy build scripts
|
# Copy build scripts
|
||||||
COPY script/setup_docker_prereqs script/build_python_openzwave script/build_libcec script/
|
COPY script/setup_docker_prereqs script/build_python_openzwave script/build_libcec script/install_phantomjs script/
|
||||||
RUN script/setup_docker_prereqs
|
RUN script/setup_docker_prereqs
|
||||||
|
|
||||||
# Install hass component dependencies
|
# Install hass component dependencies
|
||||||
|
15
script/install_phantomjs
Executable file
15
script/install_phantomjs
Executable 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
|
@ -50,6 +50,9 @@ cp -R /usr/src/app/build/python-openzwave/openzwave/config /usr/local/share/pyth
|
|||||||
# Build and install libcec
|
# Build and install libcec
|
||||||
script/build_libcec
|
script/build_libcec
|
||||||
|
|
||||||
|
# Install phantomjs
|
||||||
|
script/install_phantomjs
|
||||||
|
|
||||||
# Remove packages
|
# Remove packages
|
||||||
apt-get remove -y --purge ${PACKAGES_DEV[@]}
|
apt-get remove -y --purge ${PACKAGES_DEV[@]}
|
||||||
apt-get -y --purge autoremove
|
apt-get -y --purge autoremove
|
||||||
|
Loading…
x
Reference in New Issue
Block a user