FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-lambda/examples/provided/bootstrap at build-java8 · sdscgithub/docker-lambda · GitHub
sdscgithub
/
docker-lambda
Public
forked from
lambci/docker-lambda
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-lambda
/
examples
/
provided
/
bootstrap
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
18 lines (12 loc) · 595 Bytes
Breadcrumbs
docker-lambda
/
examples
/
provided
/
bootstrap
Copy path
File metadata and controls
executable file
·
18 lines (12 loc) · 595 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!
/bin/sh
#
docker run --rm -v $PWD:/var/task lambci/lambda:provided handler '{"some": "event"}'
while
true
do
HEADERS=
"
$(
mktemp
)
"
EVENT_DATA=
$(
curl -v -sS -LD
"
$HEADERS
"
-X GET
"
http://
${AWS_LAMBDA_RUNTIME_API}
/2018-06-01/runtime/invocation/next
"
)
INVOCATION_ID=
$(
grep -Fi Lambda-Runtime-Aws-Request-Id
"
$HEADERS
"
|
tr -d
'
[:space:]
'
|
cut -d: -f2
)
echo
"
Invoke received. Request ID:
${INVOCATION_ID}
. Event:
"
echo
$EVENT_DATA
RESPONSE=
"
Hello from Lambda!
"
curl -v
"
http://
${AWS_LAMBDA_RUNTIME_API}
/2018-06-01/runtime/invocation/
$INVOCATION_ID
/response
"
-d
"
$RESPONSE
"
done
Back
|
FazBrowse Home
|
New Git URL