-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
42 lines (34 loc) · 1.39 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
FROM debian:jessie
MAINTAINER Montana Flynn <[email protected]>
# Necessities
RUN apt-get update && apt-get install -y sudo curl siege wget jq ca-certificates
# Optimizations
ADD config/server/sysctl.conf /etc/sysctl.conf
ADD config/server/limits.conf /etc/security/limits.conf
# Java 8
RUN mkdir -p /usr/lib/jvm/
RUN curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem \
--header "Cookie: oraclelicense=accept-securebackup-cookie;" \
http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jre-8u45-linux-x64.tar.gz \
| tar xz --strip-components=1 -C /usr/lib/jvm/
ENV JAVA_HOME /usr/lib/jvm
ENV PATH $JAVA_HOME/bin:$PATH
# Cassandra
RUN mkdir -p /usr/lib/cassandra/
RUN curl --silent http://ftp.wayne.edu/apache/cassandra/2.1.5/apache-cassandra-2.1.5-bin.tar.gz \
| tar xz --strip-components=1 -C /usr/lib/cassandra/
ENV CASS_HOME /usr/lib/cassandra
ENV PATH $CASS_HOME/bin:$PATH
# Kong
RUN apt-get update && apt-get install -y lua5.1 openssl dnsmasq netcat libpcre3
RUN wget https://github.com/Mashape/kong/releases/download/0.3.0/kong-0.3.0.wheezy_all.deb
RUN sudo dpkg -i kong-0.3.0.*.deb
# Cleanup
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Benchark
ENV LOG_DIR /usr/local/kong/logs
RUN mkdir -p $LOG_DIR
RUN touch $LOG_DIR/siege.log
ADD config/server/.siegerc /root/.siegerc
ADD benchmark.sh /usr/local/bin/benchmark
CMD ["benchmark"]