Skip to content

Commit a5a7ebb

Browse files
authored
Merge pull request #284 from fast-reflexes/patch-1
Update images-test.md
2 parents ff84f50 + 0b302c5 commit a5a7ebb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc_source/images-test.md

+5-4
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, 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)