Compare commits

...

11 Commits

Author SHA1 Message Date
d6b3f93d72 Merge branch 'tool_bandwhich' into dev 2022-11-23 19:57:40 +01:00
4a0bc41f9b Merge branch 'main' into dev 2022-11-23 19:57:29 +01:00
fc6eb11849 Change rust-image-tag for better multiarch-compatability 2022-11-23 19:54:23 +01:00
72b0ef8b11 Merge branch 'dev' 2022-11-23 19:30:26 +01:00
62ee2fe065 Merge branch 'tool_bandwhich' 2022-11-23 19:24:44 +01:00
03622eaa69 Merge branch 'dev' 2022-11-23 19:22:53 +01:00
7e2a97bf0d Change example to interactive 2022-11-23 19:16:07 +01:00
6e1e63cad1 Add example command 2022-11-23 18:42:34 +01:00
637bb11fdd Switch to entrypoint 2022-11-23 18:41:59 +01:00
14e9f7ee35 Combine update and make 2022-11-23 18:41:36 +01:00
471d42618d Add files for bandwhich 2022-11-23 13:20:11 +01:00
3 changed files with 37 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Collection of Dockerfiles created to build & pack various tools.
- [1. How to use](#1-how-to-use)
- [1.1. CLI](#11-cli)
- [2. Tools](#2-tools)
- [2.1. Bandwhich](#21-bandwhich)
<!-- /TOC -->
<br>
@ -43,4 +44,16 @@ Variable | Description | Default
# 2. Tools
Nothing yet
## 2.1. Bandwhich
### 2.1.1. Source
>This is a CLI utility for displaying current network utilization by process, connection and remote IP/hostname
https://github.com/imsnif/bandwhich
<br>
### 2.1.2. Example
```
docker run -it --net host bandwhich -i eth0
```

View File

@ -0,0 +1,22 @@
# ---- Base ----
FROM alpine:3 AS base
WORKDIR /app
# ---- Build ----
FROM rust:1.65.0-slim AS build
WORKDIR /build
# Install packages
RUN apk add --no-cache make libc-dev build-base
# Copy sources
ADD .build/repository/ .
# Update dependencies and Compile
RUN cargo update && TARGET="release" make
# ---- Release ----
FROM base AS release
# Copy build-target
COPY --from=build /build/target/release/bandwhich .
ENTRYPOINT ["./bandwhich"]

1
tools/bandwhich/info.env Normal file
View File

@ -0,0 +1 @@
GIT_REPOSITORY=https://github.com/imsnif/bandwhich