faas-hyper

command module
v0.0.0-...-bb0a428 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2017 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

FaaS-hyper

This is a plugin to enable Hyper.sh as an OpenFaaS backend.

Requirements

  • A working Hyper.sh account with credential
  • A Hyper.sh CLI with a working hyper

Usage

Get Started with Hyper.sh

Follow the instruction to get Access Key and Secret Key of Hyper.sh account.

Go to FIP page to allocate a new FIP, get the FIP address x.x.x.x.

Configure FaaS-hyper

Copy docker-compose-tpl.yml file to docker-compose.yml.

Edit the docker-compose.yml and input environment variables using the values above:

  • <HYPER_REGION>: insert us-west-1 or eu-central-1
  • <HYPER_ACCESS_KEY>: insert Access Key
  • <HYPER_SECRET_KEY>: insert Secret Key
  • <FIP>: insert x.x.x.x
Deploy FaaS-hyper

Use hyper compose command hyper compose up -d -p faas to deploy FaaS-hyper and FaaS API Gateway.

Once deployed, you can use http://x.x.x.x:8080/ to open the FaaS Gateway UI.

Deploy a tester function

Use hyper pull command hyper pull functions/nodeinfo to pull the image from Docker Hub.

Click CREATE NEW FUNCTION on FaaS Gateway UI to deploy the function functions/nodeinfo:

Invoke a tester function

curl http://x.x.x.x:8080/function/info

Cleanup

Remove the FaaS-hyper service

hyper compose rm -p faas

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL