Add links to examples for each Fission environment (#1090)
This commit is contained in:
@@ -7,6 +7,7 @@ Use Cases
|
|||||||
- Execute arbitrary binaries (such as common sysadmin tools)
|
- Execute arbitrary binaries (such as common sysadmin tools)
|
||||||
- Get support in _any_ programming language by executing the generated executable.
|
- Get support in _any_ programming language by executing the generated executable.
|
||||||
|
|
||||||
|
|
||||||
⚠️ **Words of Caution** ⚠️
|
⚠️ **Words of Caution** ⚠️
|
||||||
|
|
||||||
The environment runs on an alpine image with some additional utility commandline tools installed, such as 'grep'.
|
The environment runs on an alpine image with some additional utility commandline tools installed, such as 'grep'.
|
||||||
@@ -16,6 +17,8 @@ Dockerfile and build a new binary environment. See 'Compiling' for instructions.
|
|||||||
When executing functions using binaries, **ensure that the executable is built for the right architecture**.
|
When executing functions using binaries, **ensure that the executable is built for the right architecture**.
|
||||||
Using the default binary environment this means that the binary should be build for Linux.
|
Using the default binary environment this means that the binary should be build for Linux.
|
||||||
|
|
||||||
|
Looking for ready-to-run examples? See the [binary examples directory](../../examples/binary).
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
To get started with the latest binary environment:
|
To get started with the latest binary environment:
|
||||||
|
|
||||||
@@ -43,8 +46,6 @@ HTTP_CONTENT-TYPE
|
|||||||
The body of HTTP piped over the STDIN to the executable.
|
The body of HTTP piped over the STDIN to the executable.
|
||||||
All output that is provided to the server over the STDOUT will be transformed into the HTTP response.
|
All output that is provided to the server over the STDOUT will be transformed into the HTTP response.
|
||||||
|
|
||||||
See the [README](../../examples/binary/README.md) in the binary examples directory for additional usage instructions.
|
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
|
|
||||||
To build the runtime environment:
|
To build the runtime environment:
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ public class FissionFunction {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Please see examples below.
|
Please see examples below, or if you are looking for ready-to-run examples, see
|
||||||
|
the [DotNet examples directory](../../examples/dotnet).
|
||||||
|
|
||||||
## Rebuilding and pushing the image
|
## Rebuilding and pushing the image
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ public class FissionFunction {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Please see examples below.
|
Please see examples below, or if you are looking for ready-to-run examples, see
|
||||||
|
the [DotNet20 examples directory](../../examples/dotnet20).
|
||||||
|
|
||||||
## Rebuilding and pushing the image
|
## Rebuilding and pushing the image
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ This is the Go environment for Fission.
|
|||||||
|
|
||||||
It's a Docker image containing a Go runtime, along with a dynamic loader.
|
It's a Docker image containing a Go runtime, along with a dynamic loader.
|
||||||
|
|
||||||
|
Looking for ready-to-run examples? See the [Go examples directory](../../examples/go).
|
||||||
|
|
||||||
## Build this image
|
## Build this image
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -34,7 +36,3 @@ fission env update --name go --image USER/go-runtime --builder USER/go-builder
|
|||||||
|
|
||||||
After this, fission functions that have the env parameter set to the
|
After this, fission functions that have the env parameter set to the
|
||||||
same environment name as this command will use this environment.
|
same environment name as this command will use this environment.
|
||||||
|
|
||||||
## Creating functions to use this image
|
|
||||||
|
|
||||||
See the [examples README](examples/go/README.md).
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ It's a Docker image containing a OpenJDK8 runtime, along with a
|
|||||||
dynamic loader. A few dependencies are included in the
|
dynamic loader. A few dependencies are included in the
|
||||||
pom.xml file.
|
pom.xml file.
|
||||||
|
|
||||||
|
Looking for ready-to-run examples? See the [JVM examples directory](../../examples/jvm).
|
||||||
|
|
||||||
## Customizing this image
|
## Customizing this image
|
||||||
|
|
||||||
To add package dependencies, edit pom.xml to add what you
|
To add package dependencies, edit pom.xml to add what you
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ It's a Docker image containing a NodeJS runtime, along with a dynamic
|
|||||||
loader. A few common dependencies are included in the package.json
|
loader. A few common dependencies are included in the package.json
|
||||||
file.
|
file.
|
||||||
|
|
||||||
|
Looking for ready-to-run examples? See the [NodeJS examples directory](../../examples/nodejs).
|
||||||
|
|
||||||
## Customizing this image
|
## Customizing this image
|
||||||
|
|
||||||
To add package dependencies, edit package.json to add what you need,
|
To add package dependencies, edit package.json to add what you need,
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ It is implemented using the lightweight web application framework
|
|||||||
Since Twiggy is implemented with [AnyEvent](https://metacpan.org/pod/AnyEvent),
|
Since Twiggy is implemented with [AnyEvent](https://metacpan.org/pod/AnyEvent),
|
||||||
you can write async code using AnyEvent in your function.
|
you can write async code using AnyEvent in your function.
|
||||||
|
|
||||||
|
Looking for ready-to-run examples? See the [Perl examples directory](../../examples/perl).
|
||||||
|
|
||||||
## Build this image
|
## Build this image
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ This is the PHP environment for Fission.
|
|||||||
|
|
||||||
It's a Docker image containing a PHP 7.3 runtime. This image use php:7.3-cli base image with the built-in PHP server
|
It's a Docker image containing a PHP 7.3 runtime. This image use php:7.3-cli base image with the built-in PHP server
|
||||||
|
|
||||||
This environment didn't force you to use class or create a main function.
|
This environment does not force you to use a specific class or create a main function.
|
||||||
|
|
||||||
A few common extensions are included :
|
A few common extensions are included :
|
||||||
- curl
|
- curl
|
||||||
@@ -22,6 +22,8 @@ A few common extensions are included :
|
|||||||
- xmlrpc
|
- xmlrpc
|
||||||
- zip
|
- zip
|
||||||
|
|
||||||
|
Looking for ready-to-run examples? See the [PHP examples directory](../../examples/php).
|
||||||
|
|
||||||
## Customizing this image
|
## Customizing this image
|
||||||
|
|
||||||
To add other extensions or packages(composer.json) you need to edit the Dockerfile and rebuild this image (instructions below).
|
To add other extensions or packages(composer.json) you need to edit the Dockerfile and rebuild this image (instructions below).
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ It's a Docker image containing a Python 3.5 runtime, along with a
|
|||||||
dynamic loader. A few common dependencies are included in the
|
dynamic loader. A few common dependencies are included in the
|
||||||
requirements.txt file.
|
requirements.txt file.
|
||||||
|
|
||||||
|
Looking for ready-to-run examples? See the [Python examples directory](../../examples/python).
|
||||||
|
|
||||||
## Customizing this image
|
## Customizing this image
|
||||||
|
|
||||||
To add package dependencies, edit requirements.txt to add what you
|
To add package dependencies, edit requirements.txt to add what you
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ The `Fission::Request` object is a subclass of `Rack::Request` and
|
|||||||
provides access to parameters and headers. See `fission/request.rb`
|
provides access to parameters and headers. See `fission/request.rb`
|
||||||
for the public api.
|
for the public api.
|
||||||
|
|
||||||
|
Looking for ready-to-run examples? See the [Ruby examples directory](../../examples/ruby).
|
||||||
|
|
||||||
## Customizing this image
|
## Customizing this image
|
||||||
|
|
||||||
To add package dependencies, edit Gemfile to add what you
|
To add package dependencies, edit Gemfile to add what you
|
||||||
@@ -50,7 +52,3 @@ Or, if you already have an environment, you can update its image:
|
|||||||
|
|
||||||
After this, fission functions that have the env parameter set to the
|
After this, fission functions that have the env parameter set to the
|
||||||
same environment name as this command will use this environment.
|
same environment name as this command will use this environment.
|
||||||
|
|
||||||
## Creating functions to use this image
|
|
||||||
|
|
||||||
See the [examples README](examples/ruby/README.md).
|
|
||||||
|
|||||||
Reference in New Issue
Block a user