Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenFAAS integration #150

Open
RegEM opened this issue Jun 6, 2018 · 10 comments
Open

OpenFAAS integration #150

RegEM opened this issue Jun 6, 2018 · 10 comments

Comments

@RegEM
Copy link

RegEM commented Jun 6, 2018

Hi Tim,
Wondering if you're familiar with openfaas, and if so have considered running exoframe in it?
Richard

@RegEM
Copy link
Author

RegEM commented Jun 6, 2018

I believe I would need to set exoframeNetwork, and exoframeNetworkSwarm to match the swarm created by faas, presuming it is docker swarm.
I have an example compose file for faas that shows how to incorporate Traefik, so I suspect the same treatment could be done to deploy exoframe.
openfaas/faas#643

@yamalight
Copy link
Contributor

@RegEM it should be relatively easy to deploy it using docker-compose file. although I'm not sure how useful that is.
better approach might be to create Exoframe recipe for openfaas, and exoframe template for openfaas functions - then you'd be able to do exoframe setup openfaas and exoframe deploy myfunc. At least in theory - that should be possible 🤔

@RegEM
Copy link
Author

RegEM commented Jun 6, 2018

For a lark, I spun up exoframe within faas, on aws docker swarm.

I didn't have any access to exoframe, so I terminated it. I don't know exactly how it works, but the prometheus portion of faas setup started to restart exoframe automatically. So I guess that would be the one of the benefits of running exoframe within faas. That and the logging features.

Could be I'm a dog barking up the wrong tree, but if I get it working either way, I'll post my results. I had already started looking closer at the exoframe templates. But hadn't considered using it the way you suggest though.

@yamalight
Copy link
Contributor

@RegEM I've not used openfaas myself, but as far as I understand (correct me if I'm wrong) - it's intended to run functions in a could. So, I'm not sure if it makes sense to run Exoframe inside of openfaas 🤔

@RegEM
Copy link
Author

RegEM commented Jun 6, 2018

@yamalight
I've barely srcatched the surface with either exoframe or openfaas, so please take my comments in that light.

I see faas deploying via dockerfile templates. One of the templates is for a dockerfile, as opposed to the various language functions(go, node, c#, ruby, python). Either way they use a base image, and then point at the 'function'. I believe the function can be any executable that the image supports. Faas wraps the function in a basic http service. Logs the request, and monitors that the container is running, restarting or spawning copies if necessary.

Whereas, if I understand correctly, exoframe builds and deploys images. I guess my intuition was pointing towards integrating exoframe into faas, for the build capability.

I was on the Hwy all day, so have been thinking about what I think I understand, and what I need to learn. It could be that what I need to build can be scripted quite easily into faas. Need to do some more experimenting.

My prior comment probably leans more towards running exoframe concurrently with faas. I believe that is quite possible, but for sure it might not be terrible useful.

@yamalight
Copy link
Contributor

@RegEM I feel like I don't know enough about openfaas to talk here - I'll read a bit more about openfaas and will come back to you 🤔

@alexellis
Copy link

Hi,

Let us know on Slack if we can help https://docs.openfaas.com/community 👋

Alex

@yamalight
Copy link
Contributor

@alexellis this is awesome! thank you! ❤️ definitely will do once I get to it 😄

@alexellis
Copy link

You may also like the hands on labs https://github.com/openfaas/workshop

@RegEM
Copy link
Author

RegEM commented Jan 12, 2019

I follow your feeds Alex. Terrific project. Congrats on the success.

I am really liking the katacoda playground. I see they currently have three scenarios for openfaas.
https://www.katacoda.com/learn?q=openfaas&hPP=12&idx=scenarios&p=0&is_v=1#playgrounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants