diff --git a/Dockerfile b/Dockerfile index d22707a..c04e2de 100755 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,11 @@ COPY build/fetch_binaries.sh /tmp/fetch_binaries.sh RUN apt-get update && apt-get install -y \ curl \ - wget + wget \ + build-essential \ + libssl-dev \ + zip \ + git RUN /tmp/fetch_binaries.sh @@ -16,6 +20,7 @@ RUN set -ex \ && apk update \ && apk upgrade \ && apk add --no-cache \ + gcompat \ apache2-utils \ bash \ bind-tools \ @@ -78,6 +83,9 @@ COPY --from=fetcher /tmp/calicoctl /usr/local/bin/calicoctl # Installing termshark COPY --from=fetcher /tmp/termshark /usr/local/bin/termshark +# Installing wrk +COPY --from=fetcher /tmp/wrk /usr/local/bin/wrk + # Setting User and Home USER root WORKDIR /root diff --git a/README.md b/README.md index 18fc013..35ba457 100755 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ To troubleshoot these issues, `netshoot` includes a set of powerful tools as rec util-linux vim websocat + wrk ## **Sample Use-cases** diff --git a/build/fetch_binaries.sh b/build/fetch_binaries.sh index 7175f95..cd41cab 100755 --- a/build/fetch_binaries.sh +++ b/build/fetch_binaries.sh @@ -51,6 +51,15 @@ get_termshark() { esac } +get_wrk() { + git clone https://github.com/wg/wrk.git wrk + cd wrk + make + mv wrk /tmp/wrk + chmod +x /tmp/wrk +} + get_ctop get_calicoctl get_termshark +get_wrk