From 5f8d31fe0a1473afa25d383a23d0244497490c94 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Mon, 14 Aug 2017 16:22:01 +0100 Subject: [PATCH] Mention CLI instructions --- sample-functions/Phantomjs/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sample-functions/Phantomjs/README.md b/sample-functions/Phantomjs/README.md index f0af78e1..ae684263 100644 --- a/sample-functions/Phantomjs/README.md +++ b/sample-functions/Phantomjs/README.md @@ -6,6 +6,18 @@ Once a function has been deployed to FaaS using the UI or one of the other metho **Image name:** `functions/base:phantomjs` +You can use the existing Docker image that is managed through this project. + +Create the function through the FaaS CLI: + +``` +# curl -sSL https://get.openfaas.com | sudo sh + +# faas-cli -action=deploy -image=functions/base:phantomjs -name=phantomjs \ + -fprocess="phantomjs /dev/stdin" +200 OK +URL: http://localhost:8080/function/phantomjs +``` **Example usage:**