Added gaction script to support the new Google Assistant component in Docker (#10019)

* added gactions install script

* added gaction setup step

* added ability to not install gaction

* updated dev docker file
This commit is contained in:
Chris Kacerguis 2017-10-22 01:09:49 -05:00 committed by Michaël Arnauts
parent 089e1ab6f4
commit 796a3ff49d
4 changed files with 17 additions and 0 deletions

View file

@ -12,6 +12,7 @@ MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
#ENV INSTALL_LIBCEC no
#ENV INSTALL_PHANTOMJS no
#ENV INSTALL_SSOCR no
#ENV INSTALL_GACTION no
VOLUME /config

View file

@ -13,6 +13,7 @@ MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
#ENV INSTALL_PHANTOMJS no
#ENV INSTALL_COAP no
#ENV INSTALL_SSOCR no
#ENV INSTALL_GACTION no
VOLUME /config

View file

@ -0,0 +1,10 @@
#!/bin/bash
# Sets up gactions for the google_assistant component.
# Stop on errors
set -e
curl -LSO https://dl.google.com/gactions/updates/bin/linux/amd64/gactions/gactions
mv gactions /usr/bin/gactions
chmod +x /usr/bin/gactions
/usr/bin/gactions -V

View file

@ -10,6 +10,7 @@ INSTALL_FFMPEG="${INSTALL_FFMPEG:-yes}"
INSTALL_LIBCEC="${INSTALL_LIBCEC:-yes}"
INSTALL_PHANTOMJS="${INSTALL_PHANTOMJS:-yes}"
INSTALL_SSOCR="${INSTALL_SSOCR:-yes}"
INSTALL_GACTION="${INSTALL_GACTION:-yes}"
# Required debian packages for running hass or components
PACKAGES=(
@ -62,6 +63,10 @@ if [ "$INSTALL_SSOCR" == "yes" ]; then
virtualization/Docker/scripts/ssocr
fi
if [ "$INSTALL_GACTION" == "yes" ]; then
virtualization/Docker/scripts/gaction
fi
# Remove packages
apt-get remove -y --purge ${PACKAGES_DEV[@]}
apt-get -y --purge autoremove