feat: initial wipe implementation - block device safety, HDD overwrite, NVMe/secure-discard, verification

This commit is contained in:
changchichung
2026-09-01 10:56:53 +08:00
commit 5470eb0e8d
40 changed files with 5767 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM rust:1.84-bookworm AS builder
WORKDIR /app
COPY Cargo.toml Cargo.lock rust-toolchain.toml ./
COPY src ./src
RUN rustup component add rustfmt clippy && \
cargo fmt --check && \
cargo check && \
cargo test && \
cargo clippy --all-targets --all-features -- -D warnings && \
cargo build --release
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \
util-linux \
mount \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/wipe /usr/local/bin/wipe
ENTRYPOINT ["wipe"]
CMD ["--help"]