question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy function : Docker image as runtime-image

See original GitHub issue

Hello, 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:open
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
andresmgotcommented, May 3, 2019

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

1reaction
aurelienspnllcommented, May 2, 2019
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Unable to find any running pod for announcement-fn. Retrying...
Serverless: Unable to find any running pod for announcement-fn. Retrying...
Serverless: Unable to find any running pod for announcement-fn. Retrying...
Serverless: Unable to find any running pod for announcement-fn. Retrying...
Serverless: Giving up, unable to retrieve the status of the announcement-fn deployment.

That doesn’t work either. (By the way announcement-fn = myfoo of previous comments). Anyway, thanks for your help. 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found