mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Mention CLI instructions
This commit is contained in:
@ -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:**
|
||||
|
||||
|
Reference in New Issue
Block a user