Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Revert "add http benchmark tool wrk"" #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -16,6 +20,7 @@ RUN set -ex \
&& apk update \
&& apk upgrade \
&& apk add --no-cache \
gcompat \
apache2-utils \
bash \
bind-tools \
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down
9 changes: 9 additions & 0 deletions build/fetch_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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