Q2: How can I get containerized functions work wit...
# help
g
Q2: How can I get containerized functions work with SST?
t
I don't think we have support for this yet. Can you tell me more about how you're using containers locally
a
What is that?
Containerized lambdas? I’m interested.
I’m using k8s for some projects, and been looking for OpenFAAS also.
t
You can create a lambda that runs a container instead of your code directly
g
We have custom c/c++ libraries that we have put in a container. Layers is not a good fit for us as the size of the code itself with the libs is a bit less than 400MB.
Lambdas definitely work for us based on the sporadic access pattern to this functionality and currently we are using the serverless framework to take care of the bundling and deployment. I am investigating the potential to switch over here.
t
Ah interesting. We do have an issue open to support docker based functions but we don't have that today. I'm working on a new runtime implementation which will let us support all of this with ease. That said, one thing you can consider is deploying an sst.Function in local mode only. So then it wouldn't be packaged in a docker container since all the resources are available locally. Then when deploying for real, you can swap it out with a normal cdk function that uses docker
g
Can you please point me to the issue? I would like to follow it. Thanks!
t