wrk
wrk copied to clipboard
official docker image?
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"
I would be willing to contribute add a PR if there's interest.
@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.
@sammerry - can you share Dockerfile for this work you have mentioned above?
@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
FYI, the docker image / file referenced in the original posting of this issue should be this one: https://github.com/William-Yeh/docker-wrk
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.