Skip to content

Commit d59c200

Browse files
committed
Add syntax highlighting to code blocks
1 parent fcbdadc commit d59c200

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ You can build RIE into a base image. Download the RIE from GitHub to your local
7979

8080
The following example shows a typical script for a Node.js function.
8181

82-
```
82+
```sh
8383
#!/bin/sh
8484
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
8585
exec /usr/local/bin/aws-lambda-rie /usr/bin/npx aws-lambda-ric
@@ -94,27 +94,27 @@ You can build RIE into a base image. Download the RIE from GitHub to your local
9494

9595
To use the default x86\_64 architecture
9696

97-
```
97+
```dockerfile
9898
ADD aws-lambda-rie /usr/local/bin/aws-lambda-rie
9999
ENTRYPOINT [ "/entry_script.sh" ]
100100
```
101101

102102
To use the arm64 architecture:
103103

104-
```
104+
```dockerfile
105105
ADD aws-lambda-rie-arm64 /usr/local/bin/aws-lambda-rie
106106
ENTRYPOINT [ "/entry_script.sh" ]
107107
```
108108

109109
4. Build your image locally using the docker build command.
110110

111-
```
111+
```sh
112112
docker build -t myfunction:latest .
113113
```
114114

115115
5. Run your image locally using the docker run command.
116116

117-
```
117+
```sh
118118
docker run -p 9000:8080 myfunction:latest
119119
```
120120

@@ -126,7 +126,7 @@ You install the runtime interface emulator to your local machine. When you run t
126126

127127
1. From your project directory, run the following command to download the RIE (x86-64 architecture) from GitHub and install it on your local machine.
128128

129-
```
129+
```sh
130130
mkdir -p ~/.aws-lambda-rie && curl -Lo ~/.aws-lambda-rie/aws-lambda-rie \
131131
https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie \
132132
&& chmod +x ~/.aws-lambda-rie/aws-lambda-rie
@@ -140,7 +140,7 @@ You install the runtime interface emulator to your local machine. When you run t
140140

141141
2. Run your Lambda image function using the docker run command.
142142

143-
```
143+
```sh
144144
docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 myfunction:latest \
145145
--entrypoint /aws-lambda/aws-lambda-rie <image entrypoint> <(optional) image command>
146146
```
@@ -149,7 +149,7 @@ You install the runtime interface emulator to your local machine. When you run t
149149

150150
3. Post an event to the following endpoint using a curl command:
151151

152-
```
152+
```sh
153153
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
154154
```
155155

0 commit comments

Comments
 (0)