Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 960b100

Browse files
authored
Merge pull request #69 from triggermesh/branch-rename
Master branch renamed to "main"
2 parents f1d5da7 + 7ae6839 commit 960b100

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ workflows:
5858
tags:
5959
only: /^v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/
6060
branches:
61-
only: master
61+
only: main
6262
- release:
6363
context: production
6464
requires:

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ NOTE: all examples below work with [Local Registry](https://github.com/triggerme
3838
1. 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

4444
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
6868
1. 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

7474
2. Deploy example function
@@ -113,7 +113,7 @@ node -e "require('./handler').sayHelloAsync({}).then(h => console.log(h))"
113113
2. 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

119119
3. Deploy function
@@ -171,7 +171,7 @@ func main() {
171171
2. 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

177177
3. Deploy function
@@ -202,7 +202,7 @@ where `~/.ssh/id_rsa` is a path to SSH private key associated with your git acco
202202
1. 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

208208
2. Deploy example function
@@ -230,7 +230,7 @@ provider:
230230
functions:
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

263263
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:
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

273273
Let's build a Python 3.7 function as an example:
274274

samples/serverless.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ provider:
77
functions:
88
goklr:
99
source: main.go
10-
runtime: https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master/go/runtime.yaml
10+
runtime: https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/main/go/runtime.yaml
1111
description: "klr go"
1212
environment:
1313
FUNCTION: go-klr

0 commit comments

Comments
 (0)