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

Commit 8c24261

Browse files
committed
Ruby function example added to readme, #3
Signed-off-by: tzununbekov <t.zununbekov@gmail.com>
1 parent 7ff9142 commit 8c24261

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,27 @@ curl http://go-lambda.default.dev.triggermesh.io --data '{"Name": "Foo"}'
155155
"Hello Foo!"
156156
```
157157

158+
### Ruby
159+
160+
1. Install Ruby 2.5 buildtemplate
161+
162+
```
163+
tm deploy buildtemplate -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master/ruby-2.5/buildtemplate.yaml
164+
```
165+
166+
2. Deploy example function
167+
168+
```
169+
tm deploy service ruby-lambda -f https://github.com/serverless/examples --build-argument DIRECTORY=aws-ruby-simple-http-endpoint --build-argument HANDLER=handler.endpoint --build-template knative-ruby25-runtime --wait
170+
```
171+
172+
3. Function is ready
173+
174+
```
175+
curl http://ruby-test-25.default.dev.triggermesh.io
176+
{"statusCode":200,"body":"{\"date\":\"2019-01-14 19:10:29 +0000\"}"}
177+
```
178+
158179
### Support
159180

160181
We would love your feedback on this tool so don't hesitate to let us know what is wrong and how we could improve it, just file an [issue](https://github.com/triggermesh/knative-lambda-runtime/issues/new)

0 commit comments

Comments
 (0)