You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the function 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:
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: docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "chdir to cwd (\"/root\") set in config.json failed: permission denied": unknown
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: