@@ -38,7 +38,7 @@ NOTE: all examples below work with [Local Registry](https://github.com/triggerme
38
38
1 . Install runtime
39
39
40
40
```
41
- tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master /python37/runtime.yaml
41
+ tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/main /python37/runtime.yaml
42
42
```
43
43
44
44
2 . Deploy [ function] ( https://github.com/serverless/examples/tree/master/aws-python-simple-http-endpoint )
@@ -68,7 +68,7 @@ To use Python 2.7 runtime simply replace version tag in step 1 and 2 with `pytho
68
68
1 . Install node 4.3 runtime
69
69
70
70
```
71
- tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master /node4/runtime.yaml
71
+ tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/main /node4/runtime.yaml
72
72
```
73
73
74
74
2 . Deploy example function
@@ -113,7 +113,7 @@ node -e "require('./handler').sayHelloAsync({}).then(h => console.log(h))"
113
113
2 . Install node10 runtime
114
114
115
115
```
116
- tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master /node10/runtime.yaml
116
+ tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/main /node10/runtime.yaml
117
117
```
118
118
119
119
3 . Deploy function
@@ -171,7 +171,7 @@ func main() {
171
171
2 . Install Go runtime
172
172
173
173
```
174
- tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master /go/runtime.yaml
174
+ tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/main /go/runtime.yaml
175
175
```
176
176
177
177
3 . Deploy function
@@ -202,7 +202,7 @@ where `~/.ssh/id_rsa` is a path to SSH private key associated with your git acco
202
202
1 . Install Ruby 2.5 runtime
203
203
204
204
```
205
- tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master /ruby25/runtime.yaml
205
+ tm deploy task -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/main /ruby25/runtime.yaml
206
206
```
207
207
208
208
2 . Deploy example function
@@ -230,7 +230,7 @@ provider:
230
230
functions:
231
231
java-function:
232
232
source: ../aws-java-simple-http-endpoint
233
- runtime: https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master /java8/runtime.yaml
233
+ runtime: https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/main /java8/runtime.yaml
234
234
buildargs:
235
235
- HANDLER=com.serverless.Handler
236
236
environment:
@@ -262,13 +262,13 @@ curl http://aws-java-sample-java-function.default.dev.triggermesh.io -d '{"event
262
262
263
263
For cases in which the use of additional components (tm CLI, Tekton, Knative, k8s) is undesirable, it is possible to build a KLR function as a standalone Docker container and run it in any environment. To do this, you should extract the Dockerfile from the runtime you are interested in, put it in the directory with your function, update the handler variable, and build the container. Here are Dockerfile definitions for all runtimes:
264
264
265
- - [ go] ( https://github.com/triggermesh/knative-lambda-runtime/blob/master /go/runtime.yaml#L44-L68 )
266
- - [ java] ( https://github.com/triggermesh/knative-lambda-runtime/blob/master /java8/runtime.yaml#L43-L53 )
267
- - [ node-10] ( https://github.com/triggermesh/knative-lambda-runtime/blob/master /node10/runtime.yaml#L43-L48 )
268
- - [ node-4] ( https://github.com/triggermesh/knative-lambda-runtime/blob/master /node4/runtime.yaml#L43-L48 )
269
- - [ python-2] ( https://github.com/triggermesh/knative-lambda-runtime/blob/master /python27/runtime.yaml#L43-L50 )
270
- - [ python-3] ( https://github.com/triggermesh/knative-lambda-runtime/blob/master /python37/runtime.yaml#L43-L50 )
271
- - [ ruby-2] ( https://github.com/triggermesh/knative-lambda-runtime/blob/master /ruby25/runtime.yaml#L43-L47 )
265
+ - [ go] ( https://github.com/triggermesh/knative-lambda-runtime/blob/main /go/runtime.yaml#L44-L68 )
266
+ - [ java] ( https://github.com/triggermesh/knative-lambda-runtime/blob/main /java8/runtime.yaml#L43-L53 )
267
+ - [ node-10] ( https://github.com/triggermesh/knative-lambda-runtime/blob/main /node10/runtime.yaml#L43-L48 )
268
+ - [ node-4] ( https://github.com/triggermesh/knative-lambda-runtime/blob/main /node4/runtime.yaml#L43-L48 )
269
+ - [ python-2] ( https://github.com/triggermesh/knative-lambda-runtime/blob/main /python27/runtime.yaml#L43-L50 )
270
+ - [ python-3] ( https://github.com/triggermesh/knative-lambda-runtime/blob/main /python37/runtime.yaml#L43-L50 )
271
+ - [ ruby-2] ( https://github.com/triggermesh/knative-lambda-runtime/blob/main /ruby25/runtime.yaml#L43-L47 )
272
272
273
273
Let's build a Python 3.7 function as an example:
274
274
0 commit comments