You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Specify application entry point reference and supported targets
54
+
51
55
```kotlin
52
56
//..
53
57
kotlin {
@@ -68,15 +72,20 @@ kotlin {
68
72
}
69
73
//..
70
74
```
75
+
71
76
4. Choose lambda function type.
72
77
73
78
There are two types of lambda functions:
74
79
75
-
**Buffered** Lambda function collects all the data it needs to return as a response before sending it back. This is a default behavior of Lambda function. Response payload max size: 6 MB.
80
+
**Buffered** Lambda function collects all the data it needs to return as a response before sending
81
+
it back. This is a default behavior of Lambda function. Response payload max size: 6 MB.
- If you are running the project build on MacOs you might come across a set of errors connected with
193
+
curl linking e.g. `ld.lld: error: undefined symbol: curl_global_init`. This means that your local
194
+
machine [uses different curl version from what is requested by the runtime](https://youtrack.jetbrains.com/issue/KTOR-6361/Curl-Error-linking-curl-in-linkDebugExecutableLinuxX64-on-macOS).
195
+
To solve that either
196
+
use [Gihub Actions workflow](https://github.com/trueangle/kotlin-native-aws-lambda-runtime/actions/workflows/buildLinux86_64.yml)
197
+
or local docker container with ubuntu 22 under the hood. Example:
198
+
```bash
199
+
200
+
docker build -t sample .
201
+
docker run --rm -v $(pwd):/sample -w /sample sample ./gradlew build
0 commit comments