# ensure you have the latest images
$ docker pull fnproject/fnserver:latest
$ docker pull fnproject/flow:latest
# ensure you have the latest fn CLI
$ curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
# start the fn server
fn start -d
sleep 5
# start the Flow Service and point it at the functions server API URL
FNSERVER_IP=$(docker inspect --type container -f '{{.NetworkSettings.IPAddress}}' fnserver)
docker run --rm -d \
-p 8081:8081 \
-e API_URL="http://$FNSERVER_IP:8080/invoke" \
-e no_proxy=$FNSERVER_IP \
--name flowserver \
fnproject/flow:latest
Install golang dep if you haven't already.
Deploy the example application to the functions server:
make dep-up deploy-local
You are now ready to invoke the example:
make invoke
or
fn invoke go-flow go-flow
You should be able to see the following output: Flow succeeded with value foo