iliana / rust-crowbar

Wrapper to simplify writing AWS Lambda functions in Rust (using the Python execution environment)
https://docs.rs/crowbar
Apache License 2.0
197 stars 16 forks source link

Cache builds when using builder #23

Closed ramn closed 5 years ago

ramn commented 6 years ago

In https://github.com/ilianaw/rust-crowbar/blob/master/builder/build.sh a temporary cargo target dir is used. This means no caching. Do you think it would be acceptable to just use the regular target/ dir, or perhaps a docker-target dir inside the target dir or something? Would be nice to cache the builds.

softprops commented 6 years ago

I've had good luck with a Docker I use in travis that specifies a well known location for producing lambda build outputs https://github.com/softprops/lando/blob/master/builder/build.sh#L6

I have some documentation on how to gain the benefits of caching outputs through multiple runs - https://github.com/softprops/lando/tree/master/builder#usage

iliana commented 5 years ago

Since we're now pointing people to https://github.com/naftulikay/docker-crowbar I'm going to close this issue here.