Skip to content

Commit 472386d

Browse files
authored
Correcting a few small problems with the RIC README.md (aws#214)
1 parent 593e603 commit 472386d

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

  • aws-lambda-java-runtime-interface-client

aws-lambda-java-runtime-interface-client/README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,24 @@ pom.xml
7373
<version>1.0.0</version>
7474
</dependency>
7575
</dependencies>
76+
<build>
77+
<plugins>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-dependency-plugin</artifactId>
81+
<version>3.1.2</version>
82+
<executions>
83+
<execution>
84+
<id>copy-dependencies</id>
85+
<phase>package</phase>
86+
<goals>
87+
<goal>copy-dependencies</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
92+
</plugins>
93+
</build>
7694
</project>
7795
```
7896
src/main/java/example/App.java
@@ -92,7 +110,7 @@ To make it easy to locally test Lambda functions packaged as container images we
92110

93111
*To install the emulator and test your Lambda function*
94112

95-
1) From your project directory, run the following command to download the RIE from GitHub and install it on your local machine.
113+
1) Run the following command to download the RIE from GitHub and install it on your local machine.
96114

97115
```shell script
98116
mkdir -p ~/.aws-lambda-rie && \
@@ -105,7 +123,7 @@ mkdir -p ~/.aws-lambda-rie && \
105123
docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 \
106124
--entrypoint /aws-lambda/aws-lambda-rie \
107125
myfunction:latest \
108-
java -cp ./* com.amazonaws.services.lambda.runtime.api.client.AWSLambda example.App::sayHello
126+
/usr/bin/java -cp './*' com.amazonaws.services.lambda.runtime.api.client.AWSLambda example.App::sayHello
109127
```
110128

111129
This runs the image as a container and starts up an endpoint locally at `http://localhost:9000/2015-03-31/functions/function/invocations`.

0 commit comments

Comments
 (0)