-
Notifications
You must be signed in to change notification settings - Fork 227
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
Using random user id while running function containers #152
Comments
How about these ones? https://github.com/openfaas-incubator/python3-debian (and the Java template?) Alex |
I'll test with those and revert back. |
The java and golang-http templates have no issues running on different users. But the python3-debian and python-flask templates both have user set as root and hence can't run on different users. They both need to be updated. Error reported: |
Update on node js, c# and golang templates to allow running containers with random uid. This makes them compatible with OpenShift.
Context
This issue was noted with Python templates and fixed in #145
I tried to reproduce this issue with 3 templates: nodejs, c# and golang but this issue doesn't affect them and hence there is no need for any change.
How this was tested:
This was tested with the basic idea given in #145 by creating a function from the specific template which uses some external library, building the function and running the docker container with
--user <random id>:0
Another testing was done by creating a
test.txt
file in thefunction
folder and building the function again to check if different UID causes any isssues with reading files and no issue was observed for all 3 templates including Python.The text was updated successfully, but these errors were encountered: