Reputation: 135
we want to create a IBM cloud function with a python virtualenv. The python virtualenv is quite big (220 MB) and we are not allowed to push images to docker hub (the workaround described here: http://jamesthom.as/blog/2017/08/04/large-applications-on-openwhisk/).
Is there really no way to create this as a cloud function?
Thx
Upvotes: 1
Views: 158
Reputation: 5022
You can extend the base python image add the pip packages and any libraries or utilities to the image without your action code or secrets and push to dockerhub.
Then create the action with a zip archive or playing .py file in combination with the docker image
action update myaction mypython.py —docker myrepository/myextendedimage:1.0.0
Upvotes: 1