wrk icon indicating copy to clipboard operation
wrk copied to clipboard

official docker image?

Open sammerry opened this issue 6 years ago • 6 comments

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 avatar Jul 05 '18 22:07 sammerry

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

sammerry avatar Feb 13 '19 16:02 sammerry

@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.

pataquets avatar Jun 24 '21 11:06 pataquets

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

hassanfarid avatar Mar 03 '22 14:03 hassanfarid

@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

pataquets avatar Mar 17 '22 18:03 pataquets

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

daluu avatar Mar 17 '22 18:03 daluu

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.

jlozano-rh avatar Jul 11 '22 19:07 jlozano-rh