Commit c5b59a16 authored by danielgruesso's avatar danielgruesso Committed by Achilleas Pipinellis

Update registry section. Update serverless.yaml formatting

parent 53dba6e3
...@@ -84,8 +84,6 @@ At launch, the following [runtimes](https://gitlab.com/triggermesh/runtimes) are ...@@ -84,8 +84,6 @@ At launch, the following [runtimes](https://gitlab.com/triggermesh/runtimes) are
- node.js - node.js
- kaniko - kaniko
You can locate the runtimes souce at https://gitlab.com/triggermesh/runtimes
In order to deploy functions to your Knative instance, the following files must be present: In order to deploy functions to your Knative instance, the following files must be present:
1. `gitlab-ci.yml`: This template allows to define the stage, environment, and 1. `gitlab-ci.yml`: This template allows to define the stage, environment, and
...@@ -133,6 +131,7 @@ In order to deploy functions to your Knative instance, the following files must ...@@ -133,6 +131,7 @@ In order to deploy functions to your Knative instance, the following files must
FUNCTION: echo FUNCTION: echo
``` ```
The `serverless.yaml` file contains three sections with distinct parameters: The `serverless.yaml` file contains three sections with distinct parameters:
### `service` ### `service`
...@@ -148,7 +147,7 @@ The `serverless.yaml` file contains three sections with distinct parameters: ...@@ -148,7 +147,7 @@ The `serverless.yaml` file contains three sections with distinct parameters:
| Parameter | Description | | Parameter | Description |
|-----------|-------------| |-----------|-------------|
| `name` | Indicates which provider is used to execute the `serverless.yaml` file. In this case, the TriggerMesh `tm` CLI. | | `name` | Indicates which provider is used to execute the `serverless.yaml` file. In this case, the TriggerMesh `tm` CLI. |
| `registry-secret` | Indicates which registry will be used to store docker images. The sample function is using the `GitLab registry`, however, you can use other popular registries such as `Docker Hub`, `Google Container Registry`, or `Amazon EC2 Container Registry`. | | `registry-secret` | Indicates which registry will be used to store docker images. The sample function is using the GitLab Registry (`gitlab-registry`). A different registry host may be specified using `registry` key in the `provider` object. If changing the default, update the permission on the `gitlab-ci.yml` file. |
| `environment` | Includes the environment variables to be passed as part of function execution for **all** functions in the file, where `FOO` is the variable name and `BAR` are he variable contents. You may replace this with you own variables. | | `environment` | Includes the environment variables to be passed as part of function execution for **all** functions in the file, where `FOO` is the variable name and `BAR` are he variable contents. You may replace this with you own variables. |
### `functions` ### `functions`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment