Skip to content

Commit

Permalink
Added gaction script to support the new Google Assistant component in…
Browse files Browse the repository at this point in the history
… Docker (home-assistant#10019)

* added gactions install script

* added gaction setup step

* added ability to not install gaction

* updated dev docker file
  • Loading branch information
chriskacerguis authored and michaelarnauts committed Oct 22, 2017
1 parent 089e1ab commit 796a3ff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ MAINTAINER Paulus Schoutsen <[email protected]>
#ENV INSTALL_LIBCEC no
#ENV INSTALL_PHANTOMJS no
#ENV INSTALL_SSOCR no
#ENV INSTALL_GACTION no

VOLUME /config

Expand Down
1 change: 1 addition & 0 deletions virtualization/Docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ MAINTAINER Paulus Schoutsen <[email protected]>
#ENV INSTALL_PHANTOMJS no
#ENV INSTALL_COAP no
#ENV INSTALL_SSOCR no
#ENV INSTALL_GACTION no

VOLUME /config

Expand Down
10 changes: 10 additions & 0 deletions virtualization/Docker/scripts/gactions
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions virtualization/Docker/setup_docker_prereqs
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 796a3ff

Please sign in to comment.