facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
Other
4.05k stars 720 forks source link

Not Root docker container for Openshift cluster #668

Closed bigsem89 closed 2 years ago

bigsem89 commented 2 years ago

Hi, i'm trying to move image to openshift. But there is permissions issue with nonroot user.

duckling-example-exe: log: createDirectory: permission denied (Permission denied)

Could you help with it?

chessai commented 2 years ago

Hi, i'm trying to move image to openshift. But there is permissions issue with nonroot user.

duckling-example-exe: log: createDirectory: permission denied (Permission denied)

Could you help with it?

If you don't need access logging or error logging, I recommend just passing in --no-access-log and --no-error-log to the executable. That will circumvent any permission issues you're having. As for debugging general permission issues on OpenShift, I'm not familiar with the technology and it's out of scope for this issue tracker.

zoobab commented 1 year ago

Which directory does it tries to create? Even with verbose mode, it does not say which directory it tries to create:

I have no name!@stack-duckling-65c67cd69f-727jn:/$ duckling-example-exe -vv -p 8000
duckling-example-exe: log: createDirectory: permission denied (Permission denied)
zoobab commented 1 year ago

The directory is '/log'. Just make sure it is writable.