iron-io / functions

IronFunctions - the serverless microservices platform by
https://iron.io
Apache License 2.0
3.17k stars 227 forks source link

fnctl: should we add a "vendor" or "deps" command to ensure the dependencies are built on alpine #285

Open treeder opened 7 years ago

treeder commented 7 years ago

For instance, see the ruby vendoring: https://github.com/iron-io/dockerworker/tree/master/ruby

Or the node vendoring: https://github.com/iron-io/dockerworker/tree/master/node

If the dependencies have any native extensions, it won't work if built on the user's host system (unless they're running a system with musl).

ucirello commented 7 years ago

My take on this is that when the application gets complex enough, that's when our bootstrap tools go away from the scene and the advanced documentation kicks in. If you have a sufficiently complex application, you should be probably be using custom func.yaml and Dockerfile.

ucirello commented 7 years ago

With the advent of package lang and PreBuild() call, this is rather trivial now.