We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
YMIR_FUNCTION_TYPE
1 parent 7b57af1 commit 1ffaa87Copy full SHA for 1ffaa87
1 file changed
runtime/test-image.sh
@@ -44,10 +44,11 @@ done
44
ENTRY_POINT_LOG=$(docker run --rm --platform "$PLATFORM" \
45
-e AWS_LAMBDA_RUNTIME_API="localhost" \
46
-e AWS_REGION="us-east-1" \
47
+ -e YMIR_FUNCTION_TYPE="console" \
48
-e LAMBDA_TASK_ROOT="/var/task" \
49
--entrypoint /opt/ymir/bin/php "$IMAGE" /opt/runtime.php 2>&1 | head -n 20 || true)
50
-if echo "$ENTRY_POINT_LOG" | grep -q "Loaded runtime Composer autoload file"; then
51
+if echo "$ENTRY_POINT_LOG" | grep -Eq "Loaded runtime Composer autoload file|Ymir PHP Runtime \(console\) initialized"; then
52
echo " [OK] Runtime entry point loadable"
53
else
54
echo " [FAIL] Runtime entry point failed to boot"
0 commit comments