Skip to content

Commit 2101c10

Browse files
committed
images/java: fix LambdaLauncher.sh to extract CONFIG_* variables into the environment
1 parent 56e0f8b commit 2101c10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

images/java/LambdaLauncher.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ else
1717
exit 1
1818
fi
1919

20+
# set env variables from CONFIG_* prefixed ones
21+
for i in $(env); do
22+
if [[ $i == CONFIG_* ]]; then
23+
export ${i:7}
24+
fi
25+
done
26+
2027
java -jar lambda.jar $2
2128

2229
exit 0

0 commit comments

Comments
 (0)