Skip to content

Commit ae1c506

Browse files
optimize release binary & add build for debugging
1 parent 6fbdf2e commit ae1c506

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

custom-tests/build-delve/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
mkdir -p /tmp/build-delve
4+
cd /tmp/build-delve
5+
git clone https://github.com/go-delve/delve.git
6+
cd delve
7+
make build
8+
mv dlv /app/dlv
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
LAMBDA_INIT_DELVE_PORT="${LAMBDA_INIT_DELVE_PORT:-40000}"
4+
5+
exec /var/rapid/dlv --listen=:${LAMBDA_INIT_DELVE_PORT} --headless=true --api-version=2 --accept-multiclient exec /var/rapid/init

0 commit comments

Comments
 (0)