Snips platform running in docker!
Official Website about snips: https://snips.ai/
The motivation for build this container is to run "Snips Voice Assistant" with satellite configuration. This container provides only a server instance without any direct sound input / output. That means a "sattelite device" is absolutely necessary!
Read more about this: https://snips.gitbook.io/documentation/installing-snips/multi-device-setup-satellites
git clonecd into the cloned folder# Replace <image-name> with your prefered image name
docker build -f Dockerfile.amd64 -t <image-name> .
# For example
docker build -f Dockerfile.amd64 -t snips-docker-image .
# Replace <image-name> with your prefered image name
docker build -f Dockerfile.arm32v7 -t <image-name> .
# For example
docker build -f Dockerfile.arm32v7 -t snips-docker-image .
mkdir /home/user/snipsunzip assistant_proj_Xr3k725M86V1 -d /home/user/snips<container name> Choose a name for the container<log path> optionally, path on docker host where the snips logs will be stored<path to snips.toml> Path to your snips.toml file<path to snips assistant> Path to your assistant<image-name> Name of the docker image that you have create with docker buildENABLE_MQTT=<yes/no> yes (or not set) = start a mqtt serve inside the conatiner. no = you have to set up a separate mqtt serverENABLE_HOTWORD_SERVICE=<yes/no> yes (or not set) = start the hotword recognition service (required for satellite configuration methode A). no = no hotword recognition (make sense for satellite configuration methode B)docker run --name <container name> \
-v <log path>/:/var/log:Z \
-v <path to snips.toml>:/etc/snips.toml \
-v <path to snips assistant>:/usr/share/snips \
-e ENABLE_MQTT=<yes/no> \
-e ENABLE_HOTWORD_SERVICE=<yes/no> \
-p 1883:1883 \
<image-name>
# For example, run with all services
docker run \
--name snips-server \
-v /home/user/snips/log/:/var/log \
-v /home/user/snips/snips.toml:/etc/snips.toml
-v /home/user/snips/:/usr/share/snips \
-p 1883:1883 \
snips-docker-image
# For example, run without mqtt and snips-hotword
docker run \
--name snips-server \
-v /home/user/snips/log/:/var/log \
-v /home/user/snips/snips.toml:/etc/snips.toml
-v /home/user/snips/:/usr/share/snips \
-e ENABLE_MQTT=no \
-e ENABLE_HOTWORD_SERVICE=no \
-p 1883:1883 \
snips-docker-image
# On hosts with enabled SELinux (e.g. Fedora), you have to add a ":Z" at the end of all paths.
# For example
docker run \
--name snips-server \
-v /home/david/snips/log/:/var/log:Z \
-v /home/user/snips/snips.toml:/etc/snips.toml:Z
-v /home/david/snips/:/usr/share/snips:Z \
-p 1883:1883 \
snips-docker-image
SAM for assistant deploying.2019-05-08 Thanks @dchansel the problem below is fixed now!
Problem: Sometimes the key server will not respond. You got the following message at the build process
+ apt-key adv --keyserver pgp.mit.edu --recv-keys D4F50CDCA10A2849
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.l4IOylh0iu --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver pgp.mit.edu --recv-keys D4F50CDCA10A2849
gpg: requesting key A10A2849 from hkp server pgp.mit.edu
gpgkeys: key D4F50CDCA10A2849 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Solution: At the moment, i have only a workaround. -> Start the build process again and again and again... After some try it works. Yes, thats a really bad workaround...
Content type
Image
Digest
Size
245.1 MB
Last updated
over 7 years ago
docker pull arraylabs/snips-docker