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 2021/06/06 13:29:42 UTC

[GitHub] [openwhisk] GitHubDiom commented on issue #4980: where is the config file

GitHubDiom commented on issue #4980:
URL: https://github.com/apache/openwhisk/issues/4980#issuecomment-855399953


   Hi, there
   
   I have deployed openwhisk in Kind(k8s in docker).
   
   How do I change the default code size (48 MB in default)?
   
   In the beginning, I  run the following command for building virtual env.
   ```shell 
   docker run --rm -v "$PWD:/tmp" openwhisk/python3action /bin/bash -c "cd tmp; virtualenv --system-site-packages virtualenv; source virtualenv/bin/activate; pip install -r requirements.txt"
   ```
   
   And I found that `openwhisk/python3action` is too slow and usually failed when building the env.
   
   Then I change the command:
   
   ``` shell
   docker run --rm -v "$PWD:/tmp" ibmfunctions/action-python-v3.7:1.8.0 /bin/bash -c "cd tmp; virtualenv --system-site-packages virtualenv; source virtualenv/bin/activate; pip install -r reqs.txt"
   ```
   where the reqs.txt just include `opencv-python` dependency
   
   After I zip the `virtualenv` and `__main__.py` then I get `func.zip`, which is 63 M.
   
   How to I change the default code size to create the action?
   
   Thank you
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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