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

Commit 757ddcd

Browse files
committed
Rename repository
Signed-off-by: tzununbekov <[email protected]>
1 parent de71573 commit 757ddcd

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
jobs:
33
build:
4-
working_directory: /go/src/github.com/triggermesh/aws-custom-runtime
4+
working_directory: /go/src/github.com/triggermesh/knative-lambda-runtime
55
docker:
66
- image: circleci/golang
77
steps:
@@ -14,9 +14,9 @@ jobs:
1414
command: |
1515
CGO_ENABLED=0 go build
1616
- persist_to_workspace:
17-
root: /go/src/github.com/triggermesh/aws-custom-runtime
17+
root: /go/src/github.com/triggermesh/knative-lambda-runtime
1818
paths:
19-
- aws-custom-runtime
19+
- knative-lambda-runtime
2020
- save_cache:
2121
key: v1-pkg-cache
2222
paths:
@@ -33,7 +33,7 @@ jobs:
3333
name: "Publish Release on GitHub"
3434
command: |
3535
go get github.com/tcnksm/ghr
36-
VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep "Location:" | awk -F "/" '{print $NF}' | tr -d "\r")
36+
VERSION=$(curl -sI https://github.com/triggermesh/knative-lambda-runtime/releases/latest | grep "Location:" | awk -F "/" '{print $NF}' | tr -d "\r")
3737
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} /tmp/artifacts
3838
workflows:
3939
version: 2

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aws-custom-runtime
1+
knative-lambda-runtime

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![CircleCI](https://circleci.com/gh/triggermesh/aws-custom-runtime.svg?style=shield)](https://circleci.com/gh/triggermesh/aws-custom-runtime)
1+
[![CircleCI](https://circleci.com/gh/triggermesh/knative-lambda-runtime.svg?style=shield)](https://circleci.com/gh/triggermesh/knative-lambda-runtime)
22

33
## Running AWS Lambda Custom Runtime in Knative
44

@@ -14,12 +14,12 @@ This repository contains an `example` lambda function written in bash with a AWS
1414

1515
1. Install AWS custom runtime buildtemplate:
1616
```
17-
tm deploy buildtemplate -f https://raw.githubusercontent.com/triggermesh/aws-custom-runtime/master/buildtemplate.yaml
17+
tm deploy buildtemplate -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master/buildtemplate.yaml
1818
```
1919

2020
2. Deploy function:
2121
```
22-
tm deploy service lambda-bash -f https://github.com/triggermesh/aws-custom-runtime --build-template aws-custom-runtime --build-argument DIRECTORY=example --wait
22+
tm deploy service lambda-bash -f https://github.com/triggermesh/knative-lambda-runtime --build-template knative-lambda-runtime --build-argument DIRECTORY=example --wait
2323
```
2424

2525
In output you'll see URL that you can use to access `example/function.sh` function
@@ -43,8 +43,8 @@ mv target/release/examples/basic target/release/examples/bootstrap
4343

4444
3. Deploy buildtemplate function using [`tm`](https://github.com/triggermesh/tm) CLI:
4545
```
46-
tm deploy buildtemplate -f https://raw.githubusercontent.com/triggermesh/aws-custom-runtime/master/buildtemplate.yaml
47-
tm deploy service lambda-rust -f target/release/examples/ --build-template aws-custom-runtime
46+
tm deploy buildtemplate -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master/buildtemplate.yaml
47+
tm deploy service lambda-rust -f target/release/examples/ --build-template knative-lambda-runtime
4848
```
4949

5050
Use your RUST AWS Lambda function on knative:
@@ -114,8 +114,8 @@ make
114114

115115
4. Deploy with [`tm`](https://github.com/triggermesh/tm) CLI:
116116
```
117-
tm deploy buildtemplate -f https://raw.githubusercontent.com/triggermesh/aws-custom-runtime/master/buildtemplate.yaml
118-
tm deploy service lambda-cpp -f . --build-template aws-custom-runtime
117+
tm deploy buildtemplate -f https://raw.githubusercontent.com/triggermesh/knative-lambda-runtime/master/buildtemplate.yaml
118+
tm deploy service lambda-cpp -f . --build-template knative-lambda-runtime
119119
```
120120

121121
C++ Lambda function is running on knative platform:
@@ -127,7 +127,7 @@ Hello, World!
127127

128128
### Support
129129

130-
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/aws-custom-runtime/issues/new)
130+
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)
131131

132132
### Code of Conduct
133133

buildtemplate.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
apiVersion: build.knative.dev/v1alpha1
1616
kind: BuildTemplate
1717
metadata:
18-
name: aws-custom-runtime
18+
name: knative-lambda-runtime
1919
spec:
2020
parameters:
2121
- name: IMAGE
@@ -40,16 +40,16 @@ spec:
4040
cat <<EOF > Dockerfile
4141
FROM amazonlinux
4242
43-
RUN LATEST_VERSION=\$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep "Location:" | awk -F "/" '{print \$NF}' | tr -d "\r" ) \
44-
&& curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/\${LATEST_VERSION}/aws-custom-runtime > /opt/aws-custom-runtime \
45-
&& chmod +x /opt/aws-custom-runtime
43+
RUN LATEST_VERSION=\$(curl -sI https://github.com/triggermesh/knative-lambda-runtime/releases/latest | grep "Location:" | awk -F "/" '{print \$NF}' | tr -d "\r" ) \
44+
&& curl -sL https://github.com/triggermesh/knative-lambda-runtime/releases/download/\${LATEST_VERSION}/knative-lambda-runtime > /opt/knative-lambda-runtime \
45+
&& chmod +x /opt/knative-lambda-runtime
4646
4747
ENV LAMBDA_TASK_ROOT "/opt"
4848
ENV _HANDLER "${HANDLER}"
4949
5050
COPY . /opt
5151
52-
CMD ["/opt/aws-custom-runtime"]
52+
CMD ["/opt/knative-lambda-runtime"]
5353
EOF
5454
- name: export
5555
image: gcr.io/kaniko-project/executor@sha256:30ba460a034a8051b3222a32e20cb6049741e58384e3adf8c8987c004e2f2ab9

0 commit comments

Comments
 (0)