FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lambda-runtime-init/Makefile at localstack · localstack/lambda-runtime-init · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
localstack
/
lambda-runtime-init
Public
forked from
aws/aws-lambda-runtime-interface-emulator
Notifications
You must be signed in to change notification settings
Fork
3
Star
7
Code
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lambda-runtime-init
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
78 lines (60 loc) · 2.54 KB
Breadcrumbs
lambda-runtime-init
/
Makefile
Copy path
File metadata and controls
78 lines (60 loc) · 2.54 KB
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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
LOCALSTACK CHANGES 2022-03-10: remove linker flags and add gc flags for delve debugger
#
LOCALSTACK CHANGES 2022-03-28: change compile src folder
#
LOCALSTACK CHANGES 2022-11-14: add --rm flag to compile-with-docker
#
RELEASE_BUILD_LINKER_FLAGS disables DWARF and symbol table generation to reduce binary size
#
RELEASE_BUILD_LINKER_FLAGS=-s -w
BINARY_NAME
=aws-lambda-rie
ARCH
=x86_64
GO_ARCH_x86_64
:= amd64
GO_ARCH_arm64
:= arm64
DESTINATION_x86_64
:= bin/${BINARY_NAME}-x86_64
DESTINATION_arm64
:= bin/${BINARY_NAME}-arm64
GO_VERSION
:=
$(
shell
grep '^go ' go.mod | awk '{print $$2}')
run_in_docker
= docker run --env GOPROXY=direct -v
$(
shell
pwd)
:/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:
$(
GO_VERSION
)
$(
1
)
compile-with-docker-all
:
$(
call
run_in_docker, make compile-lambda-linux-all)
compile-lambda-linux-all
:
make ARCH=x86_64 compile-lambda-linux
make ARCH=arm64 compile-lambda-linux
compile-with-docker
:
$(
call
run_in_docker, make ARCH=${ARCH} compile-lambda-linux)
compile-lambda-linux
:
CGO_ENABLED=0 GOOS=linux GOARCH=
${GO_ARCH_
${ARCH}
}
go build -buildvcs=false -ldflags
"
${RELEASE_BUILD_LINKER_FLAGS}
"
-gcflags=
"
${GC_FLAGS}
"
-o
${DESTINATION_
${ARCH}
}
./cmd/localstack
tests-with-docker
:
$(
call
run_in_docker, make tests)
tests
:
go
test
./...
integ-tests-and-compile
: tests
make compile-lambda-linux-all
make integ-tests
integ-tests-with-docker
: tests-with-docker
make compile-with-docker-all
make integ-tests
prep-python
:
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install requests parameterized
exec-python-e2e-test
:
.venv/bin/python3 test/integration/local_lambda/test_end_to_end.py
integ-tests
:
make prep-python
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
make TEST_ARCH=x86_64 TEST_PORT=8002 exec-python-e2e-test
make TEST_ARCH=arm64 TEST_PORT=9002 exec-python-e2e-test
make TEST_ARCH=
"
"
TEST_PORT=9052 exec-python-e2e-test
integ-tests-with-docker-x86-64
:
make ARCH=x86_64 compile-with-docker
make prep-python
make TEST_ARCH=x86_64 TEST_PORT=8002 exec-python-e2e-test
integ-tests-with-docker-arm64
:
make ARCH=arm64 compile-with-docker
make prep-python
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
make TEST_ARCH=arm64 TEST_PORT=9002 exec-python-e2e-test
integ-tests-with-docker-old
:
make ARCH=old compile-with-docker
make prep-python
make TEST_ARCH=
"
"
TEST_PORT=9052 exec-python-e2e-test
check-binaries
: prep-python
.venv/bin/pip install cve-bin-tool
.venv/bin/python -m cve_bin_tool.cli bin/ -r go -d REDHAT,OSV,GAD,CURL --no-0-cve-report -f csv
Back
|
FazBrowse Home
|
New Git URL