-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add files to packaging command * do not package files or includes if not given * don't marshal json args for AWS lambda * added env configuration to function * add layer configuration to function * add layer facility * add layer cleanup and move function commands * add lambci-lambda to function providers * add support for file output to one-shot-bench * set AWS function runtime to 'provided' * handle lambci docker image reload timings * improved method for getting remote process id * implement runtimes and remove layer CLI * add support for local lambci instance * add documentation * merged documentation * simplify lambci directory configuration and revert changes to function command * add documentation for LambCI lambda * additional documentation for LambCI lambda * fix bug with AWS function update * integrate PR feedback into LambCI branch * optimize lambci remote directory creation * eliminate 'duplicate explicit target name' warnings * update documentation * add configuration doc for lambci lambda + some simplifications * fix * documentation cleanup * add link to layers documentation Co-authored-by: Leonhard Holz <leonhard.holz@googlemail.com>
- Loading branch information
Showing
38 changed files
with
1,350 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
srk.yaml | ||
*srk.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. _example_advanced: | ||
|
||
=============================================================================== | ||
Advanced Function Setup | ||
=============================================================================== | ||
|
||
This example shows how to setup a function using additional files, environment | ||
variables and a configurable runtime. | ||
|
||
******************************************************************************* | ||
Adding Additional Files | ||
******************************************************************************* | ||
|
||
Sometimes it is necessary to add additional files from outside the source | ||
directory to the function package. This can be done via the ``--files`` | ||
parameter. | ||
|
||
:: | ||
|
||
$ ./srk function create -s <source-dir> -f <path-to-file1>,<path-to-file2> | ||
|
||
|
||
******************************************************************************* | ||
Setting Environment Variables | ||
******************************************************************************* | ||
Environment_ variables can provide additional information to the function and | ||
the runtime environment. They can be set by adding the ``--env`` parameter at | ||
function creation. | ||
|
||
:: | ||
|
||
$ ./srk function create -s <source-dir> -e VAR1=VALUE1,VAR2=VALUE2 | ||
|
||
|
||
******************************************************************************* | ||
Setting the Runtime | ||
******************************************************************************* | ||
If a function does not use the configured default runtime it can be specified | ||
via the ``--runtime`` parameter. | ||
|
||
:: | ||
|
||
$ ./srk function create -s <source-dir> -r <runtime> | ||
|
||
The runtime_ can either be provided by the FaaS provider or defined as a set of | ||
layers_ configured in the configuration. | ||
|
||
.. _Runtime: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html | ||
.. _Layers: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html | ||
.. _Environment: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.