forked from asmuth-archive/sqltap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
43 lines (36 loc) · 1.01 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
FROM java:8
MAINTAINER DaWanda <[email protected]>
ARG SBT_VERSION="0.13.8"
ENV SQLTAP_HTTP_PORT="3000" \
SQLTAP_THREADS="16" \
SQLTAP_SCHEMA="/etc/sqltap-schema.xml" \
SCHEMA_URL="" \
SQLTAP_OPTS="" \
MYSQL_HOST="127.0.0.1" \
MYSQL_PORT="3306" \
MYSQL_USER="fetch" \
MYSQL_DATABASE="test" \
MYSQL_NUMCONNS="6" \
MYSQL_QUEUELEN="2500" \
JMX_PORT="9191" \
RMI_BIND="127.0.0.1" \
JAVA_XMX="16384M" \
CACHE_BACKEND="memcache" \
MEMCACHE_HOST="" \
MEMCACHE_PORT="11211" \
MEMCACHE_QUEUELEN="8192" \
MEMCACHE_NUMCONNS="20" \
STATSD_PREFIX="sqltap"
ADD https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb /tmp/sbt.deb
RUN dpkg -i /tmp/sbt.deb && rm -f /tmp/sbt.deb
RUN sbt
ADD project /usr/src/project/
ADD src /usr/src/src/
ADD build.sbt /usr/src/
RUN cd /usr/src && \
sbt assembly && \
cp -vpi /usr/src/target/scala-*/sqltap.jar /usr/lib/sqltap.jar && \
rm -rf /usr/src/*
EXPOSE $SQLTAP_HTTP_PORT
ADD bootup.sh /bootup.sh
CMD ["/bootup.sh"]