You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/10/03 14:05:48 UTC

[GitHub] csantanapr opened a new issue #61: Problems with relative directory when using zip actions

csantanapr opened a new issue #61: Problems with relative directory when using zip actions
URL: https://github.com/apache/incubator-openwhisk-runtime-docker/issues/61
 
 
   TLDR; have the python proxy set current directory to `/action/`
   
   The current directory is set to default meaning currently is `/actionProxy/`
   When using a zip action the contents of the action is extracted to `/action/` 
   If the zip file has more files and the exec binary needs to reads the file the location would be `/action/file.txt` for example. 
   I think is better to have the current directory set to `/action/` this way the `exec` can assume the relative directory to `exec` or zip is the current directory hiding any implementation details of `/action` and also making testing the action locally easier before build the zip and deploying.
   
   This is already handle in python zip action correctly via [`os.chdir`](https://github.com/apache/incubator-openwhisk-runtime-python/blob/master/core/pythonAction/pythonrunner.py#L51)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services