-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
27 lines (19 loc) · 896 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
FROM java:openjdk-8-alpine
MAINTAINER [email protected]
ARG VERSION
ENV JARVERSION=$VERSION
ENV WORKDIR /usr/share/opentsdb
ENV LOGDIR /var/log/opentsdb
ENV ETCDIR /etc/opentsdb
RUN mkdir -p $WORKDIR/build/libs
RUN mkdir -p $LOGDIR
RUN mkdir -p $ETCDIR
# It is expected these might need to be passed in with the -e flag
ENV JAVA_OPTS="-Xms512m -Xmx2048m"
WORKDIR $WORKDIR
ADD build/install/DiscoveryPlugins/lib/* $WORKDIR/build/libs/
ADD build/install/DiscoveryPlugins/bin/* $WORKDIR/bin/
#ADD src/main/resources/opentsdb.conf $ETCDIR/opentsdb.conf
#ADD src/main/resources/logback.xml $ETCDIR/logback.xml
VOLUME ["/etc/opentsdb"]
CMD java ${JAVA_OPTS} -cp "build/libs:${ETCDIR}/log4j.properties:${ETCDIR}/logback.xml:build/libs/*" io.tsdb.opentsdb.ExecutePlugin --config=${ETCDIR}/opentsdb.conf