-
Notifications
You must be signed in to change notification settings - Fork 368
/
Dockerfile
33 lines (29 loc) · 938 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
30
31
32
33
FROM debian:jessie
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 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /opt/wrk/
# Setup directory
RUN mkdir /scripts
RUN mkdir /data
WORKDIR /scripts
# Add scripts
COPY ./include /vendor/dd-demo
COPY ./wrk/scripts /scripts
# Set entrypoint
ENTRYPOINT ["./entrypoint.sh"]