Trying to build clojure-runtime without SAM and getting a bit lost. Any tips?
What is the problem?
If you targeting the Clojure backend then the procedure is: 1. Run bb hl:compile 2. Build a docker image 3. Create an ECR and deploy the image 4. Use PackageType Image, and reference the image uri in your cdk.
Anyway highly encourage to rather stick to native backend if you care about cold starts.
This is first time I'm seeing this!
Cool
Btw you're not using docker images?
cc @coltnz
Thanks. Yeah I'm currently blocked on native with compiling cognitect-aws.
Thought too the clojure runtime might be useful for integration tests
Have you checked the examples? I got plenty users that utilize cognitect-aws.
What service are you trying to integrate?
Compiler was crashing on a Jetty class
I think the next version of Graal fixes it
Nah. Just show your stacktrace, so that I can help.
See an example: https://github.com/FieryCod/holy-lambda/blob/master/examples/bb/native/sqs.example/src/sqs/example/core.cljc Anyway if you want only cognitect AWS api you can safely use babashka backend ;)
Caused by: org.graalvm.compiler.graph.GraalGraphError: java.lang.NullPointerException
at node: 1281|+ { nodeSourcePosition=at org.eclipse.jetty.util.TypeUtil.<clinit>(TypeUtil.java:192) [bci: 996], stamp=i32, }Seemed to hard to fix, other than downgrading graal perhaps
What graalvm version do you use?
Btw is it possible for you to create a minimal repro?
Built OK with latest Graal
Would like to deploy with CDK
https://github.com/SingularityGroup/support-bot-announce here is a recent example using graalvm and cdk. It was copied from Karols azure example
Cool! May I include this project in Examples section in README.md?