Deploy function : Docker image as runtime-image
See original GitHub issueHello, I would like to know if it is possible to deploy a function using a Docker image on minikube cluster.
With Kubeless, I was able to do this :
kubeless function deploy foo --runtime-image docker_image_foo
What I did not succeed to reproduce with serverless. Here is my serverless.yaml file that I used:
service: myfoo
provider: kubeless
plugins:
- serverless-kubeless
functions:
myfoo:
description: 'My function'
#handler: not define
memorySize: 300Mi
image: docker_image_foo
So I got this error :
Serverless: Skipping deployment of myfoo since it doesn't have a handler
Is there a way to not define handler? Is there an equivalent to the kubeless command line above for serverless?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Deploy Python Lambda functions with container images
Deploy your Python Lambda function code as a container image using an AWS provided base image or the runtime interface client.
Read more >AWS Lambda with custom docker images as runtime
Learn how to build and deploy an AWS Lambda function with a custom python docker container as runtime with the use of Amazon...
Read more >Customizing deployment runtime images - IBM
Create a custom Docker image with libraries and packages that are required for ... by the latest runtime image ( wml-deployment-runtime-py39-server.json ).
Read more >Package MATLAB Standalone Applications into Docker Images
DockerOptions function lets you customize Docker image packaging. opts = compiler.package.DockerOptions(res,'ImageName','mymagic-standalone-app').
Read more >Functionapp With Custom Runtime Image, Use ACR Admin ...
You need to add an RBAC assignment to your ACR instance granting the system-assigned identity of your function app the AcrPull role.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I see, the error is actually complaining about the format of the handler so maybe if you try
not.empty
would work.In any case, I think it’s better if we remove the check for non empty handlers here. Would you mind sending a PR? It should be easy to just remove the condition:
https://github.com/serverless/serverless-kubeless/blob/master/lib/deploy.js#L556
That doesn’t work either. (By the way announcement-fn = myfoo of previous comments). Anyway, thanks for your help. 😄