This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-08
Channels
- # announcements (6)
- # atom-editor (1)
- # babashka (21)
- # beginners (70)
- # clerk (4)
- # clj-kondo (71)
- # clj-yaml (1)
- # clojure (54)
- # clojure-art (1)
- # clojure-denmark (1)
- # clojure-dev (1)
- # clojure-doc (1)
- # clojure-europe (31)
- # clojure-nl (1)
- # clojure-norway (41)
- # clojure-uk (15)
- # clojurescript (36)
- # conjure (1)
- # cursive (2)
- # datomic (14)
- # duct (10)
- # emacs (12)
- # etaoin (176)
- # gratitude (25)
- # hyperfiddle (17)
- # jobs (1)
- # juxt (5)
- # london-clojurians (1)
- # malli (3)
- # nbb (21)
- # off-topic (29)
- # reitit (12)
- # releases (2)
- # remote-jobs (7)
- # shadow-cljs (9)
- # testing (9)
Has anyone used nbb with fnproject? if there is an example that would be great. I tried googling but no luck
The Fn project is an open-source container-native serverless platform that you can run anywhere
hmm, I hoped I could run the nodefn
example without running all kinds of other stuff
you mean docker?
Fn: Get "": dial tcp [::1]:8080: connect: connection refused
See 'fn <command> --help' for more information. Client version: 0.6.23
anyway something like this should work: https://github.com/babashka/nbb/blob/fn-project/doc/fnproject/nodefn/func.js
The documentation which explains this is here: https://github.com/babashka/nbb#calling-nbb-from-javascript
Thanks 🙏:skin-tone-3: will try it tomorrow morning
Keen to hear how this goes too, Aziz.
alright, it worked locally. Need to test on oracle cloud now. Will do it later today. One thing to note is that you need to increase the memory limit to 256 for this to work with nbb
schema_version: 20180708
name: nodefn
version: 0.0.8
runtime: node
build_image: fnproject/node:14-dev
run_image: fnproject/node:14
entrypoint: node func.js
memory: 256
I am 15% happier compared to yesterday, thank you @U04V15CAJ 🙏