-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (33 loc) · 1.62 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
# Dockerfile to run KairosDB on Cassandra. Configuration is done through environment variables.
#
# The following environment variables can be set
#
# $CASS_HOSTS [kairosdb.datastore.cassandra.host_list] (default: localhost:9160)
# Cassandra seed nodes (host:port,host:port)
#
# $REPFACTOR [kairosdb.datastore.cassandra.replication_factor] (default: 1)
# Desired replication factor in Cassandra
#
# $PORT_TELNET [kairosdb.telnetserver.port] (default: 4242)
# Port to bind for telnet server
#
# $PORT_HTTP [kairosdb.jetty.port] (default: 8080)
# Port to bind for http server
#
# Sample Usage:
# docker run -P -e "CASS_HOSTS=192.168.1.63:9160" -e "REPFACTOR=1" stakater/kairosdb
FROM stakater/java:oracle-8
MAINTAINER Rasheed Amir <rasheed@aurorasolutions.io>
ARG KAIROSDB_VERSION
RUN echo "going to use kairosdb http port $PORT_TELNET"
# install gettext for envsubst
RUN apt-get update
RUN apt-get install -y gettext-base
# Install KAIROSDB
RUN wget -O /var/cache/kairosdb_${KAIROSDB_VERSION}-1_all.deb \
/~https://github.com/kairosdb/kairosdb/releases/download/v${KAIROSDB_VERSION}/kairosdb_${KAIROSDB_VERSION}-1_all.deb
RUN dpkg -i /var/cache/kairosdb_${KAIROSDB_VERSION}-1_all.deb
ADD kairosdb.properties /tmp/kairosdb.properties
ADD runKairos.sh /usr/local/sbin/run_kairosdb.sh
ADD logback.xml /opt/kairosdb/conf/logging/logback.xml
ENTRYPOINT ["/usr/local/sbin/run_kairosdb.sh"]