fix: Install cargo deny in ci image (#5317)

* fix: install cargo deny in ci image

* fix: Update docker/Dockerfile.ci

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>

* fix: Apply suggestions from code review

Co-authored-by: Marco Neumann <marco@crepererum.net>

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
Co-authored-by: Marco Neumann <marco@crepererum.net>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Andrew Lamb 2022-08-05 11:51:35 -04:00 committed by GitHub
parent fc1870ff76
commit 38a0cdbb4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -123,7 +123,7 @@ jobs:
- cache_restore
- run:
name: Install cargo-deny
command: cargo install --force cargo-deny
command: cargo install cargo-deny
- run:
name: cargo-deny Checks
command: cargo deny check -s

View File

@ -58,9 +58,10 @@ RUN groupadd -g 1500 rust \
&& echo 'rust ALL=NOPASSWD: ALL' >> /etc/sudoers.d/10-rust \
&& echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
# Ensure we are ready with cargo hakari
RUN cargo install cargo-hakari
RUN chown -R rust:rust /usr/local/cargo
# Ensure we are ready with cargo hakari and cargo deny
RUN cargo install cargo-hakari && \
cargo install cargo-deny && \
chown -R rust:rust /usr/local/cargo
USER rust
ENV PATH /home/rust/.local/bin:/home/rust/bin:${PATH}