mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Add hub stats function
This commit is contained in:
11
sample-functions/DockerHubStats/README.md
Normal file
11
sample-functions/DockerHubStats/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
Building:
|
||||
|
||||
```
|
||||
# docker service rm hubstats ; docker service create --network=functions --name=hubstats alexellis2/dockerhub-stats
|
||||
```
|
||||
|
||||
Query the function through the gateway:
|
||||
|
||||
```
|
||||
# curl -X POST -d "alexellis2" -v http://localhost:8080/function/hubstats
|
||||
```
|
Reference in New Issue
Block a user