init commit
This commit is contained in:
commit
0bfe016fbe
3 changed files with 39 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#FROM debian:stable-slim
|
||||
#RUN apt update
|
||||
#RUN apt upgrade -y
|
||||
#RUN apt-get install -y build-essential git unzip
|
||||
FROM alpine as builder
|
||||
RUN apk add --no-cache --virtual build-dependencies build-base wget git perl-dev linux-headers
|
||||
RUN apk add gcc
|
||||
WORKDIR /root/
|
||||
RUN git clone https://github.com/wg/wrk.git
|
||||
WORKDIR /root/wrk/
|
||||
RUN make -j$(nproc --all)
|
||||
|
||||
#RUN apt-get remove -y build-essential git unzip
|
||||
#RUN apt autoremove -y
|
||||
#RUN apt autoclean -y
|
||||
|
||||
#RUN apk del build-dependencies
|
||||
RUN rm -rf /root/wrk/obj /root/wrk/.git /root/wrk/deps
|
||||
|
||||
FROM alpine
|
||||
RUN apk add --no-cache gcc
|
||||
COPY --from=builder /root/wrk /root/wrk
|
||||
|
||||
ENTRYPOINT ["/root/wrk/wrk"]
|
||||
14
Dockerfile.debian
Normal file
14
Dockerfile.debian
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM debian:stable-slim
|
||||
RUN apt update
|
||||
RUN apt upgrade -y
|
||||
RUN apt-get install -y build-essential git unzip
|
||||
WORKDIR /root/
|
||||
RUN git clone https://github.com/wg/wrk.git
|
||||
WORKDIR /root/wrk/
|
||||
RUN make -j$(nproc --all)
|
||||
|
||||
RUN apt-get remove -y build-essential git unzip
|
||||
RUN apt autoremove -y
|
||||
RUN apt autoclean -y
|
||||
|
||||
ENTRYPOINT ["/root/wrk/wrk"]
|
||||
1
run
Executable file
1
run
Executable file
|
|
@ -0,0 +1 @@
|
|||
docker run --rm -it git.sethsamuel.online/fluffy/wrk:debian
|
||||
Loading…
Add table
Add a link
Reference in a new issue