Fork me on GitHub
#nbb
<
2023-03-08
>
Aziz Aldawood20:03:07

Has anyone used nbb with fnproject? if there is an example that would be great. I tried googling but no luck

borkdude20:03:31

what is fnproject?

Aziz Aldawood20:03:40

The Fn project is an open-source container-native serverless platform that you can run anywhere

😍 2
borkdude20:03:13

I'll try it out and will add an example to the repo

🙏 2
borkdude20:03:10

hmm, I hoped I could run the nodefn example without running all kinds of other stuff

Aziz Aldawood20:03:20

you mean docker?

borkdude20:03:31

yeah I'm not able to deploy it locally

borkdude20:03:04

fn deploy --local --app fdkdemo

borkdude20:03:09

Fn: Get "": dial tcp [::1]:8080: connect: connection refused

See 'fn <command> --help' for more information. Client version: 0.6.23

borkdude20:03:33

and note the "type": "module" in package.json

Aziz Aldawood20:03:58

Thanks 🙏:skin-tone-3: will try it tomorrow morning

borkdude20:03:10

ok let me know how it goes

borkdude20:03:41

build_image: fnproject/node:14-dev
run_image: fnproject/node:14

borkdude20:03:51

you might need node 16, but perhaps 14 works

👍 2
Chris McCormick01:03:26

Keen to hear how this goes too, Aziz.

Aziz Aldawood06:03:02

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

Aziz Aldawood06:03:24

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

Aziz Aldawood06:03:08

I am 15% happier compared to yesterday, thank you @U04V15CAJ 🙏