This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-26
Channels
- # announcements (7)
- # babashka (6)
- # beginners (41)
- # clara (27)
- # clerk (2)
- # cljs-dev (6)
- # clojure (121)
- # clojure-europe (31)
- # clojure-nl (2)
- # clojure-norway (98)
- # clojure-uk (12)
- # clojuredesign-podcast (7)
- # conjure (5)
- # cursive (22)
- # holy-lambda (22)
- # hoplon (9)
- # hyperfiddle (19)
- # leiningen (9)
- # malli (4)
- # music (1)
- # nbb (6)
- # off-topic (10)
- # podcasts-discuss (1)
- # polylith (4)
- # re-frame (2)
- # reitit (2)
- # releases (1)
- # sci (1)
- # shadow-cljs (59)
- # sql (9)
- # vim (41)
- # xtdb (23)
Hi guys. Can anyone share basic 1.edn file example for ring handler. I have created rest service with holy-lambda and now trying to compile it and put it into docker. Thank you.
What is the reason you need 1.edn? Typically it is used only by GraalVM HL agent.
On compile it throws an error.
On compile or during creating executable using GraalVM?
I am trying to compile/build jar/native image. As I understand I need to provide 1.edn with all routes and queries/body params to test them.
I did the same 1.edn but for simple holy lambda without ring.
You don’t have to.
When using ring you don’t necessarily need 1.edn.
You may use agent in-native-context instead. Should be much easier
Could you please share an example file or project. With ring can I build native image? thnkx
Did you mean? I should fill this one
I removed native_conf.clj file and it started building
Exactly!
Thanks Bro.
https://github.com/FieryCod/holy-lambda-ring-adapter/tree/master/examples/native
One more question. Usually I create a docker file and push it to ECR. Will it work with native images?
Yeah. 👍:skin-tone-6:
If you mean docker AWS lambda deployment then yes! But please be aware that native lambda can be deployed as a single zip
Yep I know. I was thinking to configure GitHub actions and ci/cd to build and push it to ecr on master merge.
But I could not find Dockerfile configuration for native images.