mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Merge branch 'chad-add-fn' into 'master'
adding fn bin See merge request !22
This commit is contained in:
18
README.md
18
README.md
@@ -24,7 +24,7 @@ platform that you can run anywhere. Some of it's key features:
|
||||
|
||||
## Usage
|
||||
|
||||
### Installation
|
||||
### Installation (if running locally)
|
||||
|
||||
NOTE: The following instructions apply while the project is a private repo. This will
|
||||
build the Functions server and the CLI tool directly from the repo instead of
|
||||
@@ -42,6 +42,22 @@ make dep # just once
|
||||
make run # will build as well
|
||||
```
|
||||
|
||||
### Installation (if using internal alpha service)
|
||||
|
||||
Set your system to point to the internal service on BMC:
|
||||
|
||||
```sh
|
||||
export API_URL=http://129.146.10.253:80
|
||||
```
|
||||
|
||||
Download the pre-built CLI binary:
|
||||
|
||||
```sh
|
||||
........
|
||||
```
|
||||
|
||||
That's it!
|
||||
|
||||
<!-- ADD BACK ONCE PUBLIC
|
||||
|
||||
### Install CLI tool
|
||||
|
||||
@@ -75,7 +75,13 @@ res.Write(os.Stdout)
|
||||
Rinse and repeat for each incoming workload.
|
||||
|
||||
|
||||
## Deploying a hot function
|
||||
## Enabling a hot function
|
||||
|
||||
In your func.yaml, add "format: http". That's it.
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
|
||||
Once your functions is adapted to be handled as hot function, you must tell
|
||||
Functions daemon that this function is now ready to be reused across
|
||||
@@ -96,6 +102,8 @@ requests:
|
||||
}
|
||||
}
|
||||
```
|
||||
-->
|
||||
|
||||
|
||||
`format` (mandatory) either "default" or "http". If "http", then it is a hot
|
||||
container.
|
||||
@@ -104,3 +112,4 @@ container.
|
||||
this functions. This is a per-node configuration option. Default: 1
|
||||
|
||||
`idle_timeout` (optional) - idle timeout (in seconds) before function termination.
|
||||
|
||||
|
||||
1
fn/.gitignore
vendored
1
fn/.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
fn
|
||||
vendor/
|
||||
/fn.exe
|
||||
/fn_linux
|
||||
|
||||
Reference in New Issue
Block a user