Add files for bandwhich
This commit is contained in:
parent
250819c08d
commit
471d42618d
@ -7,10 +7,15 @@ Collection of Dockerfiles created to build & pack various tools.
|
|||||||
|
|
||||||
<!-- TOC -->
|
<!-- TOC -->
|
||||||
- [1. Tools](#1-tools)
|
- [1. Tools](#1-tools)
|
||||||
|
- [1.1. Bandwhich](#11-bandwhich)
|
||||||
<!-- /TOC -->
|
<!-- /TOC -->
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
# 1. Tools
|
# 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
|
||||||
|
24
tools/bandwhich/Dockerfile
Normal file
24
tools/bandwhich/Dockerfile
Normal file
@ -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"]
|
1
tools/bandwhich/info.env
Normal file
1
tools/bandwhich/info.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
GIT_REPOSITORY=https://github.com/imsnif/bandwhich
|
Loading…
x
Reference in New Issue
Block a user