Files
faas/oneshot.sh
Alex Ellis 9656b530c4 Enable routing to Alexa functions
Add first Alexa-compatible function HostnameIntent
2016-12-30 18:54:57 +00:00

13 lines
468 B
Bash
Executable File

#!/bin/bash
docker network create --driver overlay --attachable functions
git clone https://github.com/alexellis/faas && cd faas
cd watchdog
./build.sh
docker build -t catservice .
docker service rm catservice ; docker service create --network=functions --name catservice catservice
cd ..
cd gateway
docker build -t server . ;docker rm -f server; docker run -v /var/run/docker.sock:/var/run/docker.sock --name server -p 8080:8080 --network=functions server