Merge branch 'chad-add-fn' into 'master'

adding fn bin

See merge request !22
This commit is contained in:
Chad Arimura
2017-05-27 14:40:35 +00:00
4 changed files with 27 additions and 3 deletions

View File

@@ -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

View File

@@ -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
View File

@@ -1,4 +1,3 @@
fn
vendor/
/fn.exe
/fn_linux

BIN
fn/bin/fn Executable file

Binary file not shown.