@@ -38,7 +38,7 @@ NOTE: all examples below work with [Local Registry](https://github.com/triggerme
38381 . Install runtime
3939
4040```
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
4242```
4343
44442 . 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
68681 . Install node 4.3 runtime
6969
7070```
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
7272```
7373
74742 . Deploy example function
@@ -113,7 +113,7 @@ node -e "require('./handler').sayHelloAsync({}).then(h => console.log(h))"
1131132 . Install node10 runtime
114114
115115```
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
117117```
118118
1191193 . Deploy function
@@ -171,7 +171,7 @@ func main() {
1711712 . Install Go runtime
172172
173173```
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
175175```
176176
1771773 . Deploy function
@@ -202,7 +202,7 @@ where `~/.ssh/id_rsa` is a path to SSH private key associated with your git acco
2022021 . Install Ruby 2.5 runtime
203203
204204```
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
206206```
207207
2082082 . Deploy example function
@@ -230,7 +230,7 @@ provider:
230230functions:
231231 java-function:
232232 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
234234 buildargs:
235235 - HANDLER=com.serverless.Handler
236236 environment:
@@ -262,13 +262,13 @@ curl http://aws-java-sample-java-function.default.dev.triggermesh.io -d '{"event
262262
263263For 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:
264264
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 )
272272
273273Let's build a Python 3.7 function as an example:
274274
0 commit comments