This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-10
Channels
- # admin-announcements (1)
- # aleph (1)
- # asami (9)
- # babashka (30)
- # beginners (83)
- # calva (8)
- # cherry (4)
- # cider (4)
- # clj-kondo (15)
- # cljs-dev (11)
- # cljsrn (8)
- # clojure (85)
- # clojure-europe (87)
- # clojure-losangeles (9)
- # clojure-nl (4)
- # clojure-norway (4)
- # clojure-spec (3)
- # clojurescript (12)
- # community-development (5)
- # conjure (1)
- # core-typed (3)
- # datomic (21)
- # docker (13)
- # emacs (13)
- # funcool (1)
- # google-cloud (1)
- # graalvm (12)
- # gratitude (14)
- # holy-lambda (6)
- # introduce-yourself (18)
- # lsp (15)
- # malli (6)
- # matcher-combinators (15)
- # nbb (15)
- # off-topic (37)
- # pathom (31)
- # portal (23)
- # rdf (3)
- # releases (2)
- # reveal (2)
- # sci (4)
- # scittle (3)
- # shadow-cljs (14)
- # squint (2)
- # tools-deps (29)
@karol.wojcik is it possible to invoke a lambda from the command line?
java -jar .holy-lambda/build/output.jar "example.core.MyLambda"
WARNING: abs already refers to: #'clojure.core/abs in namespace: cljc.java-time.duration, being replaced by: #'cljc.java-time.duration/abs
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.toString()" because "runtime" is null
at fierycod.holy_lambda.custom_runtime$url.invokeStatic(custom_runtime.clj:8)
at fierycod.holy_lambda.custom_runtime$next_iter.invokeStatic(custom_runtime.clj:63)
at fierycod.holy_lambda.custom_runtime$next_iter.invoke(custom_runtime.clj:63)
at clojure.lang.Var.invoke(Var.java:399)
at example.core$_main.invokeStatic(core.clj:192)
at example.core$_main.doInvoke(core.clj:192)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at example.core.main(Unknown Source)
Presumably, I need to get a payload to the function? Do you happen to know what format that might take?I should clarify that I know I can use sam invoke for interacting with my lambda. My goal here is to run the app as part of a docker build to capture shared class data:
RUN java -XX:ArchiveClassesAtExit=classes.jsa -jar output.jar "example.core.MyLambda"
CMD java -XX:SharedArchiveFile=classes.jsa -jar output.jar "example.core.MyLambda"
I figured it out. Will detail my method later if anyone’s interested
Please do!!
As I remember there is executor JVM property I’m using to gather reflective calls.
https://github.com/FieryCod/holy-lambda/blob/master/src/fierycod/holy_lambda/core.cljc L65
I figured it out. Will detail my method later if anyone’s interested