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

official docker image? #349

Open
sammerry opened this issue Jul 5, 2018 · 6 comments
Open

official docker image? #349

sammerry opened this issue Jul 5, 2018 · 6 comments

Comments

@sammerry
Copy link

sammerry commented Jul 5, 2018

Have you guys thought about releasing an official docker image? I've started having people install through docker when they need it and it works great

add this in the .bashrc

alias wrk='docker run --rm -i --network host williamyeh/wrk'

then

wrk -t1 -d1m "http://somesite"
@sammerry
Copy link
Author

I would be willing to contribute add a PR if there's interest.

@pataquets
Copy link

@wg Friendly ping to main commiter, in case he has notifications turned off.
I was looking for the same, instead of having to maintain my own, as @sammerry is doing.
It's a very useful packaging mechanism, which allows using the tool right away with just a one-liner.
Also, the issue has a handful of thumbs up.

@hassanfarid
Copy link

@sammerry - can you share Dockerfile for this work you have mentioned above?

@pataquets
Copy link

@hassanfarid I had a Dockerfile created a while ago lying around which I've been able to build successfully. So, I've submitted PR #492 in case it's useful for anyone else. Hope it helps you.
cc: @wg

@daluu
Copy link

daluu commented Mar 17, 2022

FYI, the docker image / file referenced in the original posting of this issue should be this one: https://github.com/William-Yeh/docker-wrk

@jlozano-rh
Copy link

Hi, just my two cents:

FROM alpine:latest as build
RUN apk add --update alpine-sdk perl linux-headers
RUN cd /tmp                               && \
    git clone -b 4.2.0 https://github.com/wg/wrk
RUN cd /tmp/wrk                           && \
    make

FROM alpine:latest
MAINTAINER Juan Lozano <[email protected]>
COPY --from=build /tmp/wrk/wrk /usr/local/bin/
RUN apk add --no-cache libgcc
WORKDIR /data
ENTRYPOINT ["wrk"]

With this Dockerfile you can build an image to run inside pipelines of CI/CD for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants