Add cargo-audit support

This commit is contained in:
Eric Kidd 2018-07-25 07:08:58 -04:00
parent 7119ebae22
commit 14ff0ce4bf
2 changed files with 6 additions and 0 deletions

View file

@ -113,6 +113,10 @@ ENV OPENSSL_DIR=/usr/local/musl/ \
# libraries needed by the most popular and common Rust crates, to avoid # libraries needed by the most popular and common Rust crates, to avoid
# everybody needing to build them manually.) # everybody needing to build them manually.)
# Install some useful Rust tools from source. This will use the static linking
# toolchain, but that should be OK.
RUN cargo install -f cargo-audit
# Expect our source code to live in /home/rust/src. We'll run the build as # Expect our source code to live in /home/rust/src. We'll run the build as
# user `rust`, which will be uid 1000, gid 1000 outside the container. # user `rust`, which will be uid 1000, gid 1000 outside the container.
WORKDIR /home/rust/src WORKDIR /home/rust/src

View file

@ -54,6 +54,7 @@ This image also supports the following extra goodies:
- Basic compilation for `armv7` using `musl-libc`. Not all libraries are supported at the moment, however. - Basic compilation for `armv7` using `musl-libc`. Not all libraries are supported at the moment, however.
- [`mdbook`][mdbook] for building searchable HTML documentation from Markdown files. Build manuals to use alongside your `cargo doc` output! - [`mdbook`][mdbook] for building searchable HTML documentation from Markdown files. Build manuals to use alongside your `cargo doc` output!
- [`cargo audit`][audit] to check your Rust project for known security issues.
## Making OpenSSL work ## Making OpenSSL work
@ -175,6 +176,7 @@ Either the [Apache 2.0 license](./LICENSE-APACHE.txt), or the
[MIT license](./LICENSE-MIT.txt). [MIT license](./LICENSE-MIT.txt).
[Alpine Linux container]: https://hub.docker.com/_/alpine/ [Alpine Linux container]: https://hub.docker.com/_/alpine/
[audit]: https://github.com/RustSec/cargo-audit
[mdbook]: https://github.com/rust-lang-nursery/mdBook [mdbook]: https://github.com/rust-lang-nursery/mdBook
[musl-libc]: http://www.musl-libc.org/ [musl-libc]: http://www.musl-libc.org/
[musl-gcc]: http://www.musl-libc.org/how.html [musl-gcc]: http://www.musl-libc.org/how.html