Giter Site home page Giter Site logo

tgerov / store-functions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openfaas/store-functions

0.0 0.0 0.0 37 KB

Common CLIs packaged in containers with a HTTP interface

License: MIT License

Shell 2.51% JavaScript 9.63% Python 5.42% Go 24.37% Dockerfile 58.07%

store-functions's Introduction

store-functions

Common CLIs packaged in containers with a HTTP interface

Sponsor this build

About these functions:

  • They are multi-arch - for armhf, arm64 and x86_64
  • They are built with faas-cli
  • They are built and published to GHCR as container images to avoid the Docker Hub's rate limits

You may also like the bash template for OpenFaaS, so you can perform multiple tasks with CLIs or call your scripts over HTTPS.

Using the functions

With OpenFaaS

You can deploy them through openfaas on Kubernetes, or openfaas on a VM with faasd.

faas-cli store deploy curl

faas-cli store deploy nodeinfo

faas-cli deploy --image ghcr.io/openfaas/alpine:latest \
  --name env --fprocess="env"

Example usage:

faas-cli store deploy nmap
echo -n "-sP 192.168.0.0/24" faas-cli invoke nmap

With Docker

Or run them ad-hoc with Docker:

docker run -p 8080:8080 --name hey \
  -d ghcr.io/openfaas/hey:latest

curl http://127.0.0.1:8080 -d "-c 5 -n 1000 https://your-service.com/"

Included functions

  • alpine - a base for running built-in bash or busybox commands like env (use it to debug headers) or wc -l to count text within a body
  • curl - debug outgoing networking or internal services
  • figlet - print ASCII logso
  • hey - run a load-test against a HTTP API, website, or function with hey
  • nmap - scan a network range
  • nodeinfo - debug auto-scaling, find the container's memory, CPU information and uptime
  • sleep - debug timeouts or async by sleeping for a set duration
  • sentimentanalysis - use Python's textblob library to find out if a statement is positive or negative
  • shasum - generate a SHA for a given input
  • youtubedl - downloads a youtube video

Other functions: imagemagick, ffmpeg.

License

MIT

store-functions's People

Contributors

alexellis avatar cpanato avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.