Skip to content

Commit 7d7c859

Browse files
committed
Improve the example in the README
The `bundler` gem is required to build the docker image and also the full path to the `aws_lambda_ric` binary is required to run it.
1 parent 5e669fe commit 7d7c859

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ ARG FUNCTION_DIR="/function"
5959
# Install ruby
6060
RUN amazon-linux-extras install -y ruby2.6
6161

62+
# Install bundler
63+
RUN gem install bundler
64+
6265
# Install the Runtime Interface Client
6366
RUN gem install aws_lambda_ric
6467

@@ -68,7 +71,7 @@ COPY app.rb ${FUNCTION_DIR}
6871

6972
WORKDIR ${FUNCTION_DIR}
7073

71-
ENTRYPOINT ["aws_lambda_ric"]
74+
ENTRYPOINT ["/usr/local/bin/aws_lambda_ric"]
7275
CMD ["app.App::Handler.process"]
7376
```
7477

@@ -102,7 +105,7 @@ mkdir -p ~/.aws-lambda-rie && \
102105
docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 \
103106
--entrypoint /aws-lambda/aws-lambda-rie \
104107
myfunction:latest \
105-
aws_lambda_ric app.App::Handler.process
108+
/usr/local/bin/aws_lambda_ric app.App::Handler.process
106109
```
107110

108111
This runs the image as a container and starts up an endpoint locally at `http://localhost:9000/2015-03-31/functions/function/invocations`.
@@ -144,4 +147,5 @@ If you discover a potential security issue in this project we ask that you notif
144147

145148
## License
146149

147-
This project is licensed under the Apache-2.0 License.
150+
This project is licensed under the Apache-2.0 License.
151+

0 commit comments

Comments
 (0)