News for hackers. Stuff that matters.
Re:Show HN: OpenFaaS - Serverless on your terms by superasn on Monday September 25, 2017 @02:25AM (#15328439)
I've been trying to run PHP functions on Aws lambda for sometime. The solutions provided so far[1] are really complicated and serverless framework doesn't have amy inbuilt templates for PHP.

Anyway though I totally don't get this (using a mobile phone will watch the video when I get home) but the thing that really got my eye was I can write in any programming language. So can this help me accomplish what I'm trying to do?

[1] https://aws.amazon.com/blogs/compute/scripting-languages-for...

Re:Show HN: OpenFaaS - Serverless on your terms by alexellisuk on Monday September 25, 2017 @05:23AM (#15328985)
PHP is pretty easy to write with OpenFaaS. Here's an example of how the CLI works - https://blog.alexellis.io/quickstart-openfaas-cli/

I can intro you to the guy who wrote the PHP template.

If anyone would like to join our Slack Community - ping an email to me at [email protected].

Re:Show HN: OpenFaaS - Serverless on your terms by superasn on Tuesday September 26, 2017 @03:52PM (#15341981)
Thanks for the reply. It helped me to get a basic understanding of Openfaas. The only thing the article didn't mention is how to move the docker image to aws lambda and invoke it via aws. sorry I'm a total noob but i will try to find out more.
Re:Show HN: OpenFaaS - Serverless on your terms by alexellisuk on Monday September 25, 2017 @05:26AM (#15328997)
We actually have a serverless function running right now that takes GitHub Star events and posts your avatar as a Polaroid over here -> https://twitter.com/alexellisuk_bot

Here's the code including stack.yml that shows how the functions are built/deployed - https://github.com/alexellis/faas-twitter-fanclub

All the people who have been staring the openfaas/faas repo ove the last few days have triggered it and are on the feed.

Re:Show HN: OpenFaaS - Serverless on your terms by tfjaeckel on Monday September 25, 2017 @07:03PM (#15334891)
We're working mostly with the Serverless framework. Cool to see you're working on a plugin for that. Will give it a spin once that's ready. Any timeline for that?
Re:Show HN: OpenFaaS - Serverless on your terms by alexellisuk on Tuesday September 26, 2017 @04:01AM (#15336975)
We have a CLI [1] for OpenFaaS which gives a better experience than the Serverless Inc. Framework format along with more native integrations. Example stack.yml file [3].

The integration with serverless framework is functioning and if you'd like to be involved with testing ping me for a Slack invite. I'll connect you to the contributor who is leading it.

[1] https://github.com/openfaas/faas-cli , https://blog.alexellis.io/quickstart-openfaas-cli/

[2] https://github.com/openfaas/serverless-faas

[3] https://github.com/alexellis/faas-twitter-fanclub/blob/maste...

Re:Show HN: OpenFaaS - Serverless on your terms by tfjaeckel on Tuesday September 26, 2017 @05:56AM (#15337395)
Thanks! Let me check this out a little further.
Re:Show HN: OpenFaaS - Serverless on your terms by alexellisuk on Tuesday September 26, 2017 @06:52AM (#15337591)
Also goes without saying - welcome to join us on Slack. Ping [email protected]
Re:Show HN: OpenFaaS - Serverless on your terms by diminish on Sunday September 24, 2017 @05:25AM (#15324046)
Sorry for my ignorance - what does 'serverless' exactly mean?
Re:Show HN: OpenFaaS - Serverless on your terms by alexellisuk on Sunday September 24, 2017 @05:36AM (#15324074)
Glad you asked, I wrote up about it here - Introducing Functions as a Service (OpenFaaS) - https://blog.alexellis.io/introducing-functions-as-a-service...
Re:Show HN: OpenFaaS - Serverless on your terms by stephenr on Sunday September 24, 2017 @06:38AM (#15324207)
For certain values of "your terms"
Re:Show HN: OpenFaaS - Serverless on your terms by breakingcups on Monday September 25, 2017 @05:11AM (#15328935)
Care to expand?
Re:Show HN: OpenFaaS - Serverless on your terms by stephenr on Monday September 25, 2017 @07:17AM (#15329480)
It relies on docker. So if you don't want a maintenance nightmare you're SOL.

Something that works via libvirt to allow multiple backends would honestly be a much nicer option.

Re:Show HN: OpenFaaS - Serverless on your terms by alexellisuk on Monday September 25, 2017 @07:29AM (#15329536)
If you want to use a completely unmanaged solution checkout the Hyper.sh integration - https://github.com/hyperhq/faas-hyper

We're also looking at ACI integration and I believe GKE will work out the box with our native Kubernetes back-end

Re:Show HN: OpenFaaS - Serverless on your terms by stephenr on Monday September 25, 2017 @09:07AM (#15330080)
I don't think you understood my issue at all.

The things you mentioned are all just services providing hosted docker.

Re:Show HN: OpenFaaS - Serverless on your terms by alexellisuk on Monday September 25, 2017 @11:01AM (#15330987)
I should have explained that Hyper.sh gives a Docker interface but runs on VMs without Docker. What's the specific gripe with Docker or containers?
Re:Show HN: OpenFaaS - Serverless on your terms by stephenr on Monday September 25, 2017 @02:08PM (#15332621)
Not containers, docker.

Libvirt would allow someone to run this with practically any "virtualisation-like" system.

Re:Show HN: OpenFaaS - Serverless on your terms by alexellisuk on Tuesday September 26, 2017 @04:24AM (#15337060)
You may have an opportunity there then - here is the CNCF's Serverless working group's paper - https://docs.google.com/document/d/1UjW8bt5O8QBgQRILJVKZJej_...

I believe all the Open Source projects are using Docker at some level via K8s or closer to the metal with runc.