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

Submission Request, imgmod function #74

Open
psyhomb opened this issue Apr 21, 2019 · 15 comments
Open

Submission Request, imgmod function #74

psyhomb opened this issue Apr 21, 2019 · 15 comments
Assignees

Comments

@psyhomb
Copy link

psyhomb commented Apr 21, 2019

Hi guys, I would like to submit a review request for this Image Manipulation Function with hope it can be added to the OpenFaaS Function Store 🙂

{
  "title": "Image Manipulation Function",
  "description": "Provide URL and use image manipulation function to download, scale, gray, flip, mirror, invert any online jpeg or png image",
  "image": "psyhomb/imgmod:latest",
  "name": "imgmod",
  "fprocess": "python3 index.py",
  "network": "func_functions",
  "repo_url": "https://github.com/psyhomb/serverless/tree/master/openfaas/imgmod",
  "environment": {
    "input_mode": "url",
    "output_mode": "image"
  },
  "labels": {
    "com.openfaas.ui.ext": "jpg"
  }
}

Thanks

@psyhomb psyhomb changed the title Submission Request, imgmod Submission Request, imgmod function Apr 21, 2019
@psyhomb
Copy link
Author

psyhomb commented Apr 30, 2019

Anything new on this? :(

@alexellis
Copy link
Member

Hi there, thanks for taking an interest. The usage information would really help here.

Alex

@psyhomb
Copy link
Author

psyhomb commented Apr 30, 2019

Hi, I think everything has been explained in the README.md file.

Thanks

@alexellis
Copy link
Member

This needs to run as a non root user and to write to /tmp/ only. Please can you take a look?

@psyhomb
Copy link
Author

psyhomb commented Apr 30, 2019

Hey @alexellis, function is using in memory file object, in other words it doesn't require filesystem access, so I'm not quite sure what do you mean by it has to write to /tmp?

@alexellis
Copy link
Member

Ok then please just make sure you use a non root user next.

@psyhomb
Copy link
Author

psyhomb commented Apr 30, 2019

Will do that ASAP, thanks.

@psyhomb
Copy link
Author

psyhomb commented May 1, 2019

Ok then please just make sure you use a non root user next.

Done, all processes running inside of container will be executed under non root user.

@psyhomb
Copy link
Author

psyhomb commented May 2, 2019

Hey @alexellis is there anything else I have to change?

@psyhomb
Copy link
Author

psyhomb commented May 18, 2019

Hey @alexellis what is going on with this submission, is this suppose to take this long, it's been almost a month?

@alexellis
Copy link
Member

The OpenFaaS project is run by unpaid volunteers. As the maintainer I receive hundreds of GitHub notifications per week, so it's hard to keep track of all of them.

I'll check your PR again.

The best way to get on my radar is to message in a public channel on Slack or to DM me there.

@alexellis
Copy link
Member

After deploying a function from the store, users will have no idea how to invoke your function. It's not your fault, but you could help them by providing a helper message when the user doesn't provide your expected input, or they give a non-JSON input.

What do you think?

@alexellis
Copy link
Member

I'm also struggling to understand why the official Python template wasn't used for the function? I'd rather it was based upon something which is being maintained by the project.

Let us know on Slack if you need any technical support with templates or building custom modules.

Alex

--
Join Slack to connect with the community
https://docs.openfaas.com

@alexellis alexellis self-assigned this Jun 4, 2019
@psyhomb
Copy link
Author

psyhomb commented Jun 5, 2019

After deploying a function from the store, users will have no idea how to invoke your function. It's not your fault, but you could help them by providing a helper message when the user doesn't provide your expected input, or they give a non-JSON input.

What do you think?

What about repo_url link to full documentation?

"repo_url": "https://github.com/psyhomb/serverless/tree/master/openfaas/imgmod",

@psyhomb
Copy link
Author

psyhomb commented Jun 5, 2019

I'm also struggling to understand why the official Python template wasn't used for the function?

Development of imgmod function was started 2 years ago, at that time python3 template didn't even exist, I've also sent you python3 template suggestion on Slack at that time... so that's the reason why 🙂.

I'd rather it was based upon something which is being maintained by the project.

This function is tested and it's working on OpenFaaS and AWS Lambda platform/service, is there any kind of issue you've detected?

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

No branches or pull requests

2 participants