-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Question about using AlpineFunction sample function #297
Comments
Send your email to [email protected] and I'll invite you to slack. Someone should be able to help you there |
@udondan I'm able to reproduce this locally, having a look into it now |
Derek add label: question |
Please try the tutorials or samples. Tutorials are in faas repo under the guide folder. |
@udondan for your particular case I assume you're just attempting to run the basic provided function, in which case can you deploy with the following:
This will explicitly set the process to invoke in the function - have a look at the You should normally be able to just use the |
@udondan there's a fix in the pipeline for the CLI issue, can you let us know if the suggestion above gets you moving in the meantime. |
@udondan - just had a chance to look at this. AlpineFunction is a base image that will allow you to run built-in busybox commands as serverless functions - or to which you can add your own code. So this would not work:
You'd need to derive a container, add your code or packages and set the fprocess (see Dockerfile for comments) or set the fprocess at deploy time through a CLI flag as explained by John
fprocess is documented on the TestDrive.md file and also over on the watchdog README.md file in the watchdog folder. https://github.com/openfaas/faas/blob/master/TestDrive.md https://github.com/openfaas/faas/tree/master/watchdog I'd suggest you follow one of the CLI tutorials first - https://github.com/openfaas/faas/tree/master/guide I.e. first Go/Python function. |
Yes, that's what I was aiming for. :)
This explain it. I started with my own Dockerfile and then reduced it step by step until I ended up with an empty Alpine image calling a system function. I then used the AlpineFunction Dockerfile in the sample folder and of course also tried with the fprocess uncommented. So yes, passing the Also tested openfaas/faas-cli#170 and that also works. Thanks folks. |
I am trying to convert a present Dockerfile into a FaaS function. I'm feeling like an idiot but I am not getting this to work. Failing with the simplest examples.
I tried this on CentOS and MacOS with the same results.
The same happens with other examples.
Expected Behaviour
Not failing
Current Behaviour
Failing, invoking a function shows:
Service log shows:
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
docker version
(e.g. Docker 17.0.05 ):faas-cli
On CentOS:
On MacOS:
Are you using Docker Swarm or Kubernetes (FaaS-netes)?
Swarm, single node
Operating System and version (e.g. Linux, Windows, MacOS):
MacOS 10.3 & CentOS 7.3.1611, same result
Link to your project or a code example to reproduce issue:
No project, failing with included example functions.
The text was updated successfully, but these errors were encountered: