faas/sample-functions
Edward Wilde be907d220c Adds annotation attribute to CreateFunctionRequest
1. Add new annotation attributes which may be used
by the back-end for making scheduling or routing decisions.

2. Updated tests/README.md to give clearer instructions on creating and
tearing down the stack required to run the integration tests

3. Update ci.sh
 * Fail as soon as an error is encountered
 * Allow script to run locally in development environment, test if repos
are already cloned etc..
 * Deploy ./stack.yml used by existing integration tests

Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-07-20 19:51:17 +01:00
..
2018-05-11 14:14:59 +01:00
2018-06-16 08:37:11 -07:00
2017-10-08 09:10:12 +01:00
2018-05-11 14:14:59 +01:00
2018-05-11 14:14:59 +01:00
2018-06-16 08:37:11 -07:00
2017-12-30 21:27:20 +00:00
2017-12-28 19:15:29 +00:00
2018-05-11 14:14:59 +01:00
2017-09-13 10:31:33 -07:00
2018-03-03 18:54:04 +00:00
2018-03-05 15:37:55 +00:00
2018-04-20 15:47:22 +01:00

Hello World in different languages:

For examples of hello-world in different programming languages see inside the BaseFunctions folder:

Demo functions from closing keynote @ Dockercon

Sample functions from the FaaS stack

Also see the community page for functions created by FaaS users and contributors.

Here is a list of some of the sample functions included this repository.

Name Details
AlpineFunction BusyBox - a useful base image with busybox utilities pre-installed
apikey-secret Example in Golang showing how to read a secret from a HTTP header and validate with a Swarm/Kubernetes secret
CaptainsIntent Alexa skill - find the count of Docker Captains
ChangeColorIntent Alexa skill - change the colour of IoT-connected lights
CHelloWorld Use C to build a function
echo Uses cat from BusyBox to provide an echo function
DockerHubStats Golang function gives the count of repos a user has on the Docker hub
figlet Generate ascii logos through the use of a binary
git-maker Use gifsicle and ffmpeg packages from Alpine Linux to make gifs from video
HostnameIntent Prints the hostname of a container
MarkdownRender Use a Go function with vendoring to convert Markdown to HTML
Nmap The network scanning tool as a binary-based function
NodeInfo Node.js - gives CPU/network info on the current container
Phantomjs Use Phantomjs to scrape/automate web-pages
ResizeImageMagick Resizes an image using the imagemagick binary
SentimentAnalysis Perform sentiment analysis with the TextBlob library
WebhookStash Golang function provides way to capture webhooks - JSON/text/binary into the container filesystem
WordCountFunction BusyBox wc is exposed as a function / service through FaaS