https://github.com/hyperhq/faas-hyper
Enable Hyper.sh as a backend for OpenFaaS (Functions as a Service) https://github.com/alexellis/faas
https://github.com/hyperhq/faas-hyper
Last synced: 5 months ago
JSON representation
Enable Hyper.sh as a backend for OpenFaaS (Functions as a Service) https://github.com/alexellis/faas
- Host: GitHub
- URL: https://github.com/hyperhq/faas-hyper
- Owner: hyperhq
- License: mit
- Archived: true
- Created: 2017-09-07T09:21:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-25T02:59:37.000Z (over 8 years ago)
- Last Synced: 2024-06-20T16:46:04.294Z (almost 2 years ago)
- Language: Go
- Size: 956 KB
- Stars: 22
- Watchers: 8
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FaaS-hyper
===========
This is a plugin to enable Hyper.sh as an [OpenFaaS](https://github.com/alexellis/faas) 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](https://docs.hyper.sh/GettingStarted/index.html) to get `Access Key` and `Secret Key` of Hyper.sh account.
Go to [FIP](https://console.hyper.sh/fips) 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:
- ``: insert `us-west-1` or `eu-central-1`
- ``: insert `Access Key`
- ``: insert `Secret Key`
- ``: 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`