fn
fn copied to clipboard
memory limit parameter for newer docker versions
- Link to issue this resolves
This error when running a very recent version of docker with fn's default image.
Error invoking function. status: 500 message: internal server error
Log from the fnproject/fnserver
API error (400): You should always set the Memory limit when using Memoryswap limit, see usage
- What I did
Added a required config option to api/agent/drivers/docker/cookie.go - configureMem
This project needs some love. Until that happens, you can mitigate this by doing the following steps:
git clone https://github.com/egandro/fn.git
# or use https://github.com/fnproject/fn.git add apply the patch from here to cookie.go
cd fn
docker rmi fnproject/fnserver:latest || true
docker build -t fnproject/fnserver:latest .
fn start
您好,您的邮件已收到,谢谢。——熊宇飞
Thank you! Its a must need to run OCI Serverless Functions locally.
Fixed here https://github.com/fnproject/fn/pull/1619