Open pbriet opened 3 years ago
I encountered the issue described in https://github.com/openfaas/python-flask-template/issues/25
The problem still exists, and is due to Openshift assigning random user ids to containers.
Dependencies in requirements.txt are available within function
ModuleNotFoundError
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.
Openshift/OKD 4.7 (but should affect all versions of Openshift / OKD)
Faas-CLI version 0.13.9
Thanks,
I encountered the issue described in https://github.com/openfaas/python-flask-template/issues/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 :
by
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,