Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 595790b

Browse filesBrowse files
Update images-test.md
Clarified that script needs to be copied into the image as well. Also changed the path to `npx` which seems to be wrong in the script.
1 parent ff84f50 commit 595790b
Copy full SHA for 595790b

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed

‎doc_source/images-test.md

Copy file name to clipboardExpand all lines: doc_source/images-test.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ You can build RIE into a base image\. Download the RIE from GitHub to your local
8282
```
8383
#!/bin/sh
8484
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
85-
exec /usr/local/bin/aws-lambda-rie /usr/bin/npx aws-lambda-ric $@
85+
exec /usr/local/bin/aws-lambda-rie /usr/local/bin/npx aws-lambda-ric $@
8686
else
87-
exec /usr/bin/npx aws-lambda-ric $@
87+
exec /usr/local/bin/npx aws-lambda-ric $@
8888
fi
8989
```
9090

@@ -101,9 +101,10 @@ You can build RIE into a base image\. Download the RIE from GitHub to your local
101101

102102
1. Download the [runtime interface emulator](https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie) from GitHub into your project directory\.
103103

104-
1. Install the emulator package and change `ENTRYPOINT` to run the new script by adding the following lines to your Dockerfile:
104+
1. Copy the script and install the emulator package and change `ENTRYPOINT` to run the new script by adding the following lines to your Dockerfile:
105105

106106
```
107+
COPY ./entry_script.sh /entry_script.sh
107108
ADD aws-lambda-rie /usr/local/bin/aws-lambda-rie
108109
ENTRYPOINT [ "/entry_script.sh" ]
109110
```
@@ -144,4 +145,4 @@ You install the runtime interface emulator to your local machine\. When you run
144145
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
145146
```
146147

147-
This command invokes the function running in the container image and returns a response\.
148+
This command invokes the function running in the container image and returns a response\.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.