Skip to content
David Salek edited this page Nov 20, 2017 · 34 revisions

https://www.openfaas.com/ https://blog.alexellis.io/first-faas-python-function/

git clone https://github.com/openfaas/faas

docker swarm init

cd faas

./deploy_stack.sh

curl -sSL https://cli.openfaas.com | sudo sh

mkdir -p ~/functions && cd ~/functions

faas-cli new --lang python hello-python

faas-cli build -f ./hello-python.yml

docker images | grep hello-python

faas-cli deploy -f ./hello-python.yml

faas-cli list

curl localhost:8080/function/hello-python -d "it's David here"

echo "it's David here" | faas-cli invoke hello-python

https://stackoverflow.com/questions/26070547/decoding-base64-from-post-to-use-in-pil

docker build -t tf-test .

https://blog.alexellis.io/quickstart-openfaas-cli/

https://github.com/faas-and-furious/inception-function

https://forums.docker.com/t/docker-17-03-on-raspberry-pi-zero-w/33027/2

(echo -n '{"image": "'; base64 ~/Desktop/cam.jpg; echo '"}')

(echo -n '{"image": "'; base64 ~/Pictures/1.jpg; echo '"}') | curl -H "Content-Type: application/json" -d @- http://some/url/

https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md

export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim

apt-get install python-tk