rust-serverless / lambda-rust

🐳 🦀 a dockerized lambda build env for rust applications
MIT License
34 stars 8 forks source link

Use this image with Codebuild #43

Open EtienneProthon opened 2 years ago

EtienneProthon commented 2 years ago

Do you have any exemple on how to use this image inside CodeBuild step of a CodePipeline ? (CDK code examples) I lose time on each build because i need to install rustup each time, i was wondering if there was an easy way to use this image to speedup.

jerusdp commented 2 years ago

I have used it in Codebuild.

In the environment build be sure to check "Privileged" so that you can run the docker container.

In the build script I call a script file that runs the container to build the binary.