Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add identicon function to functions.json #112

Merged
merged 1 commit into from
Dec 12, 2019
Merged

Conversation

rgee0
Copy link
Contributor

@rgee0 rgee0 commented Dec 12, 2019

Testing on x86_64

$ export store='https://raw.githubusercontent.com/rgee0/store/identicon/functions.json'
$ faas store list -u $store

FUNCTION                                 DESCRIPTION
NodeInfo                                 Get info about the machine that you'r...
Figlet                                   Generate ASCII logos with the figlet CLI
SSL/TLS cert info                        Returns SSL/TLS certificate informati...
Colorization                             Turn black and white photos to color ...
Inception                                This is a forked version of the work ...
Have I Been Pwned                        The Have I Been Pwned function lets y...
Face Detection with Pigo                 Detect faces in images using the Pigo...
curl                                     Use curl for network diagnostics, pas...
SentimentAnalysis                        Python function provides a rating on ...
Tesseract OCR                            This function brings OCR - Optical Ch...
Dockerhub Stats                          Golang function gives the count of re...
QR Code Generator - Go                   QR Code generator using Go
Nmap Security Scanner                    Tool for network discovery and securi...
ASCII Cows                               Generate cartoons of ASCII cows
YouTube Video Downloader                 Download YouTube videos as a function
OpenFaaS Text-to-Speech                  Generate an MP3 of text using Google'...
nslookup                                 Uses nslookup to return any IP addres...
Docker Image Manifest Query              Query an image on the Docker Hub for ...
face-detect with OpenCV                  Detect faces in images. Send a URL as...
Face blur by Endre Simo                  Blur out faces detected in JPEGs. Inv...
Left-Pad                                 left-pad on OpenFaaS
normalisecolor                           Automatically fix white-balance in ph...
mememachine                              Turn any image into a meme.
Business Strategy Generator              Generates a Business Strategy (using ...
Line Drawing Generator from a photograph Automatically generates a sketch like...
Image EXIF Reader                        Reads EXIF information from an URL or...
Open NSFW Model                          Score images for NSFW (nudity) content.
Identicon Generator                      Create an identicon from a provided s...

$ faas store deploy 'Identicon Generator' -u $store
WARNING! Communication is not secure, please consider using HTTPS. Letsencrypt.org offers free SSL/TLS certificates.

Deployed. 202 Accepted.
URL: http://127.0.0.1:8080/function/identicon

$ curl http://127.0.0.1:8080/function/identicon -d 'x86_64' > x86_64.png
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   884  100   878  100     6  21414    146 --:--:-- --:--:-- --:--:-- 21560

image

Testing on Pi3

$ export store='https://raw.githubusercontent.com/rgee0/store/identicon/functions.json'
$ faas store list -u $store

FUNCTION                    DESCRIPTION
NodeInfo                    Get info about the machine that you'r...
Figlet                      Generate ASCII logos with the figlet CLI
SSL/TLS cert info           Returns SSL/TLS certificate informati...
YouTube Video Downloader    Download YouTube videos as a function
OpenFaaS Text-to-Speech     Generate an MP3 of text using Google'...
nslookup                    Uses nslookup to return any IP addres...
Docker Image Manifest Query Query an image on the Docker Hub for ...
Left-Pad                    left-pad on OpenFaaS
Identicon Generator         Create an identicon from a provided s...

$ faas store deploy 'Identicon Generator' -u $store
WARNING! Communication is not secure, please consider using HTTPS. Letsencrypt.org offers free SSL/TLS certificates.

Deployed. 202 Accepted.
URL: http://127.0.0.1:8080/function/identicon

$ curl http://127.0.0.1:8080/function/identicon -d 'armhf' > armhf.png
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   904  100   899  100     5   3995     22 --:--:-- --:--:-- --:--:--  4072
$ cacaview armhf.png

image

Signed-off-by: Richard Gee richard@technologee.co.uk

Signed-off-by: Richard Gee <richard@technologee.co.uk>
Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@alexellis alexellis merged commit 6c96130 into openfaas:master Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants