Skip to content

Remove gevent and use waitress in all templates #33

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

Merged
merged 1 commit into from
May 2, 2020

Conversation

LucasRoesler
Copy link
Member

What

  • Update all templates to use waitress instead of gevent. This avoids
    the need to install things like gcc, make, or libffi-dev into the
    alpine images. The user can still install these via the
    ADDITIONAL_PACKAGES build arg, if they are needed.

Signed-off-by: Lucas Roesler [email protected]

**What**
- Update all templates to use waitress instead of gevent.  This avoids
  the need to install things like gcc, make, or libffi-dev into the
  alpine images. The user can still install these via the
  ADDITIONAL_PACKAGES build arg, if they are needed.

Signed-off-by: Lucas Roesler <[email protected]>
Copy link

@martindekov martindekov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with function with the python3-flask:

  • Successfully built
  • Successfully ran:
2020/05/01 22:06:15 Started logging stderr from function.
2020/05/01 22:06:15 Started logging stdout from function.
2020/05/01 22:06:15 OperationalMode: http
2020/05/01 22:06:15 Timeouts: read: 10s, write: 10s hard: 10s.
2020/05/01 22:06:15 Listening on port: 8080
2020/05/01 22:06:15 Writing lock-file to: /tmp/.lock
2020/05/01 22:06:15 Metrics listening on port: 8081
2020/05/01 22:09:41 POST / - 200 OK - ContentLength: 17

LGTM

Copy link

@martindekov martindekov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add Closes #32 in the PR description so we close the Issue on merge?

Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@alexellis alexellis merged commit e815593 into openfaas:master May 2, 2020
@alexellis
Copy link
Member

Hi @LucasRoesler, I can see why we changed from gevent in the Alpine Linux variants, but was gevent needing a compilation in Debian?

@LucasRoesler
Copy link
Member Author

Hi @LucasRoesler, I can see why we changed from gevent in the Alpine Linux variants, but was gevent needing a compilation in Debian?

yes gevent is going to require that compile stage in any installation, unless you are installing some precompiled wheel/binary from something like conda or apt-get. The same is true for Pandas, NumPy, Pillow (i think), lxml is another common dependency that i think requires development headers (it is used in xml/html parsing, e.g. Beautifulsoup uses it)

@LucasRoesler LucasRoesler deleted the fix-32-convert-to-waitress branch May 2, 2020 09:59
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

Successfully merging this pull request may close these issues.

3 participants