Skip to content

Rust AWS Lambda builder & Protobuf

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.txt
MIT
LICENSE-MIT.txt
Notifications You must be signed in to change notification settings

y2kappa/rust-musl-builder

 
 

Repository files navigation

rust-musl-builder: Build rust for AWS Lambda

Build locally for AWS Lambda machines.

Build & Build

time docker build . -t rust-builder
alias rust-builder='docker run -it -v target:/home/rust/src/target  -v cargo-registry:/home/rust/.cargo/registry  -v cargo-git:/home/rust/.cargo/git -v "$(pwd)":/home/rust/src rust-builder'
rust-builder cargo build --release --bin bootstrap
  • things are in target/x86_64-unknown-linux-musl/release

Caching builds

You may be able to speed up build performance by adding the following -v commands to the rust-musl-builder alias:

-v cargo-git:/home/rust/.cargo/git
-v cargo-registry:/home/rust/.cargo/registry
-v target:/home/rust/src/target

You will also need to fix the permissions on the mounted volumes:

rust-musl-builder sudo chown -R rust:rust \
  /home/rust/.cargo/git /home/rust/.cargo/registry /home/rust/src/target

About

Rust AWS Lambda builder & Protobuf

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.txt
MIT
LICENSE-MIT.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 58.8%
  • Shell 41.2%