-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
54 lines (40 loc) · 1.3 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM debian:jessie
MAINTAINER Michał Czeraszkiewicz <czerasz.hosting@gmail.com>
# Set the reset cache variable
ENV REFRESHED_AT 2015-06-15
ENV DEBIAN_FRONTEND noninteractive
# Update packages list
RUN apt-get update -y
# Install useful packages
# RUN apt-get install -y strace procps tree vim git curl wget gnuplot
# Install required software
RUN apt-get install -y git make build-essential libssl-dev
# Install wrk - benchmarking software
# Resource: https://github.com/wg/wrk/wiki/Installing-Wrk-on-Linux
WORKDIR /tmp
RUN git clone https://github.com/wg/wrk.git &&\
cd wrk &&\
make &&\
mv wrk /usr/local/bin
# Install Luarocks dependencies
RUN apt-get install -y curl \
make \
unzip \
lua5.1 \
liblua5.1-dev
# Install Luarocks - a lua package manager
RUN curl http://keplerproject.github.io/luarocks/releases/luarocks-2.2.2.tar.gz -O &&\
tar -xzvf luarocks-2.2.2.tar.gz &&\
cd luarocks-2.2.2 &&\
./configure &&\
make build &&\
make install
# Install the cjson package
RUN luarocks install lua-cjson
WORKDIR /
# Cleanup
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Raise the limits to successfully run benchmarks
RUN ulimit -c -m -s -t unlimited
ENV DEBIAN_FRONTEND=newt