-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
30 lines (26 loc) · 883 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Docker image for wrk
#
FROM debian:jessie
MAINTAINER Sergey Kandyla <skandyla@gmail.com>
RUN echo "===> Installing tools..." && \
apt-get -y update && \
apt-get -y install build-essential curl && \
\
echo "===> Installing wrk" && \
WRK_VERSION=$(curl -L https://github.com/wg/wrk/raw/master/CHANGES 2>/dev/null | \
egrep '^wrk' | head -n 1 | awk '{print $2}') && \
echo $WRK_VERSION && \
mkdir /opt/wrk && \
cd /opt/wrk && \
curl -L https://github.com/wg/wrk/archive/$WRK_VERSION.tar.gz | \
tar zx --strip 1 && \
make && \
cp wrk /usr/local/bin/ && \
\
echo "===> Cleaning the system" && \
apt-get -f -y --auto-remove remove build-essential curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /opt/wrk/
WORKDIR /data
ENTRYPOINT ["wrk"]
CMD ["--help"]