2019-04-16 04:41:24 UTC - Karan Kamatgi: does ibm-cos-sdk work with python2 runtime in openwhisk? i am facing errors with jmespath library not found even though i included it in my requirements.txt https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555389684026200?thread_ts=1555389684.026200&cid=C3TPCAQG1 ---- 2019-04-16 06:34:36 UTC - owen: any recommended openwhisk components for Java developer to contribute? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555396476027800?thread_ts=1555396476.027800&cid=C3TPCAQG1 ---- 2019-04-16 06:42:23 UTC - owen: @Rodric Rabbah submitted CLA today:) https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555396943027900?thread_ts=1554879521.128900&cid=C3TPCAQG1 ---- 2019-04-16 07:46:29 UTC - James Thomas: :wave: if you have any ideas on how to improve the developer experience for the Java runtime (<https://github.com/apache/incubator-openwhisk-runtime-java/>), that would be a good place to start! there was also this issue about creating a proper SDK for Java: <https://github.com/apache/incubator-openwhisk/issues/2466#issuecomment-483334286> +1 : Dominic Kim, owen https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555400789028200?thread_ts=1555396476.027800&cid=C3TPCAQG1 ---- 2019-04-16 08:13:31 UTC - Bruce Adams: I don't know the answer to your question. I hope you know that Python 2 end of life is the end of this year. <https://pythonclock.org/> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555402411029900?thread_ts=1555389684.026200&cid=C3TPCAQG1 ---- 2019-04-16 15:24:51 UTC - ed: Is this channel appropriate for asking questions for someone that is trying to figure out openwhisk/ibmcloud functions? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555428291031100 ---- 2019-04-16 15:28:02 UTC - Rodric Rabbah: hi @ed and welcome… feel free to use this channel, bulk of the communication happens here on many subjects https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555428482031600 ---- 2019-04-16 15:34:08 UTC - ed: I'm trying to port some code that we run on google cloud functions. Its mostly python but it runs 2 binaries. Is this scenario possible without using docker? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555428848032600 ---- 2019-04-16 15:36:09 UTC - James Thomas: @ed how big are the binaries? are they static or dynamically linked? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555428969034300 ---- 2019-04-16 15:36:45 UTC - ed: 100mb total https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429005035000 ---- 2019-04-16 15:37:10 UTC - James Thomas: if you deploy actions from a zip file, you can include any other files you need and they will be available in the runtime filesystem. the zip file size limit is 48MB. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429030035800 ---- 2019-04-16 15:37:36 UTC - James Thomas: if you just need to add these to the filesystem natively, i’d build a new base image extending the existing runtime images and just pre-install those actions. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429056036400 ---- 2019-04-16 15:38:06 UTC - James Thomas: I did this with tensorflow.js deps recently: <http://jamesthom.as/blog/2018/08/13/serverless-machine-learning-with-tensorflow-dot-js/> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429086036800 ---- 2019-04-16 15:38:24 UTC - ed: My zip file is 47MB, ha! https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429104037200 ---- 2019-04-16 15:38:26 UTC - ed: Barely https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429106037400 ---- 2019-04-16 15:39:07 UTC - ed: The zip method is without using docker, correct? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429147038000 ---- 2019-04-16 15:39:17 UTC - James Thomas: winning! https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429157038400 ---- 2019-04-16 15:39:22 UTC - James Thomas: yes https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429162038700 ---- 2019-04-16 15:39:32 UTC - Rodric Rabbah: (zip method works both with or without docker) https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429172039100 ---- 2019-04-16 15:39:36 UTC - James Thomas: although you can use a zip file AND a custom image (or either or none..) 100 : Rodric Rabbah https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429176039300 ---- 2019-04-16 15:40:23 UTC - James Thomas: binaries must be compiled for same platform architecture the platform uses and not linked to any dynlibs not available https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429223040100 ---- 2019-04-16 15:42:07 UTC - ed: understood +1 : James Thomas https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429327040500 ---- 2019-04-16 15:42:49 UTC - James Thomas: <https://github.com/jthomas/openwhisk-web-action-http-proxy#runtime-mode-options> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429369041100 ---- 2019-04-16 15:43:39 UTC - James Thomas: btw whiskers - I added a new feature to that Web Action Proxy I demo’d on the community call last month. It now supports dynamic injection of web app source files at runtime so you don’t have to build them into the public docker image. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429419042200 ---- 2019-04-16 15:44:15 UTC - James Thomas: ``` wsk action create --docker <REPO>/<IMAGE> --web true --main "<APP_START_CMD>" -p "__ow_proxy_port" <PROXY_PORT> my_action action.zip ``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429455042600 ---- 2019-04-16 15:44:46 UTC - James Thomas: plus you can set env params using default action parameters to allow you to pass secrets https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555429486043000 ---- 2019-04-16 16:13:52 UTC - Rodric Rabbah: that reminds me - the next community call is tomorrow (wednesday 4/17) the call is open to all and if you’d like to present or highlight some of your recent work with openwhisk let me know and i’ll include you on the agenda https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555431232044900 ---- 2019-04-16 16:58:56 UTC - ed: I was too optimistic on my ip file size. It's actually 56MB. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555433936045400 ---- 2019-04-16 17:00:11 UTC - ed: zip file* https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555434011045600 ---- 2019-04-16 17:00:47 UTC - ed: I guess my only option is Docker, but then no private registries seem to be allowed https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555434047046100 ---- 2019-04-16 17:09:59 UTC - Rodric Rabbah: can you install some of the dependencies in a docker images without your code? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555434599046500 ---- 2019-04-16 17:19:23 UTC - ed: yeah https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555435163046800 ---- 2019-04-16 17:32:24 UTC - ed: Is there a trick to mix docker with external code? (sorry to sound obtuse, but this might be the closest i've ever been to docker in my whole career, hah) https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555435944048300 ---- 2019-04-16 17:52:41 UTC - ed: If I'm understanding things correctly, I could use puth all my deps on a docker container the run 'ibmcloud fn action create Foo foo.py --docker foo/bar' white_check_mark : Rodric Rabbah https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437161049600 ---- 2019-04-16 17:52:51 UTC - ed: But I would have to cram all my code on foo.py, correct? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437171049900 ---- 2019-04-16 17:59:12 UTC - Rodric Rabbah: no you can use a zip file just as if you were using the provided python image https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437552050400 ---- 2019-04-16 17:59:48 UTC - ed: ahh awesome https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437588051200 ---- 2019-04-16 17:59:50 UTC - ed: got it https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437590051500 ---- 2019-04-16 17:59:54 UTC - Rodric Rabbah: in other words when you do `wsk action create myaction myaction.zip --kind python:default` it’s the same as `wsk action create myaction myaction.zip --docker ibm-provided-image-for-python-default` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437594051700 ---- 2019-04-16 18:00:28 UTC - ed: understood https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437628051900 ---- 2019-04-16 18:00:30 UTC - ed: thank you https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437630052100 ---- 2019-04-16 18:00:34 UTC - ed: makes sense https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1555437634052300 ----