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

Templates not working in Openshift #49

Open
pbriet opened this issue May 12, 2021 · 0 comments
Open

Templates not working in Openshift #49

pbriet opened this issue May 12, 2021 · 0 comments

Comments

@pbriet
Copy link

pbriet commented May 12, 2021

I encountered the issue described in #25

The problem still exists, and is due to Openshift assigning random user ids to containers.

Expected Behaviour

Dependencies in requirements.txt are available within function

Current Behaviour

ModuleNotFoundError

Possible Solution

I think the simplest way to solve this issue is to install the requirements globally

I.e. replacing :

USER app
RUN pip install --user -r requirements.txt

by

USER root
RUN pip install -r requirements.txt

This fix has been successfully tested.

Your Environment

  • Openshift/OKD 4.7 (but should affect all versions of Openshift / OKD)

  • Faas-CLI version 0.13.9

Thanks,

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

1 participant