News for hackers. Stuff that matters.
Re:Serverless Docker Beta by netcraft on Tuesday August 14, 2018 @01:27PM (#17759934)
My biggest problem with serverless functions is development and testing. Can I run these locally? even better offline?
Re:Serverless Docker Beta by Rauchg on Tuesday August 14, 2018 @01:37PM (#17760036)
As we mentioned in the blog post, there is zero difference between a `Dockerfile` you execute locally and one that you give to us.

[One of the differences is performance. You'll find that we can build and execute much more quickly :)]

There are many examples here: https://github.com/zeit/now-examples

Re:Serverless Docker Beta by wereHamster on Tuesday August 14, 2018 @01:52PM (#17760212)
> we can build [...] much more quickly

Care to elaborate? Did you write your own container builder (for example like Google did with kaniko) that you use instead of docker? If not, I fail to see how you can build faster than me locally.

Re:Serverless Docker Beta by e12e on Tuesday August 14, 2018 @03:04PM (#17760889)
So, I'm not running the same docker image, just something somewhat similar built from the same Dockerfile?
Re:Serverless Docker Beta by arunoda on Tuesday August 14, 2018 @10:30PM (#17763373)
> something somewhat similar built from the same Dockerfile?

Yes. We build the container based on the Dockerfile.

Re:Serverless Docker Beta by sergiodxa on Tuesday August 14, 2018 @01:42PM (#17760118)
Now uses Docker so you just need to also use Docker to run your container, there is nothing special to do to run it in locally or offline since we don't require you an specific runtime or API. Just a normal HTTP server running inside a normal Docker container.
Re:Serverless Docker Beta by k__ on Tuesday August 14, 2018 @01:31PM (#17759969)
AFAIK at least AWS Lambda has a Docker based CLI that lets you run functions locally.

I guess since the Zeit solution is based on Docker something like this should also be possible...

Re:Serverless Docker Beta by netcraft on Tuesday August 14, 2018 @01:35PM (#17760006)
ah, I didnt know that. I assume you mean this? https://github.com/lambci/docker-lambda
Re:Serverless Docker Beta by k__ on Tuesday August 14, 2018 @01:37PM (#17760035)