diff --git a/README.md b/README.md index d6d6370..ec5b205 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,15 @@ Collection of Dockerfiles created to build & pack various tools. - [1. Tools](#1-tools) + - [1.1. Bandwhich](#11-bandwhich)
# 1. Tools -Nothing yet +## 1.1. Bandwhich + +>This is a CLI utility for displaying current network utilization by process, connection and remote IP/hostname + +Source: https://github.com/imsnif/bandwhich diff --git a/tools/bandwhich/Dockerfile b/tools/bandwhich/Dockerfile new file mode 100644 index 0000000..5cbd3fb --- /dev/null +++ b/tools/bandwhich/Dockerfile @@ -0,0 +1,24 @@ +# ---- Base ---- +FROM alpine:3 AS base +WORKDIR /app + + +# ---- Build ---- +FROM rust:alpine AS build +WORKDIR /build +# Install packages +RUN apk add --no-cache make libc-dev build-base +# Copy sources +ADD .build/repository/ . +# Update dependencies +RUN cargo update +# Compile +RUN TARGET="release" make + + +# ---- Release ---- +FROM base AS release +# Copy build-target +COPY --from=build /build/target/release/bandwhich . + +CMD ["./bandwhich"] diff --git a/tools/bandwhich/info.env b/tools/bandwhich/info.env new file mode 100644 index 0000000..51a3a79 --- /dev/null +++ b/tools/bandwhich/info.env @@ -0,0 +1 @@ +GIT_REPOSITORY=https://github.com/imsnif/bandwhich