Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #26.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
.git | ||
.tablesawcache | ||
.travis.yml | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ARG KAIROSDB_VERSION=1.3.0-0.1beta | ||
|
||
FROM openjdk:8-jdk-slim-stretch as build | ||
ARG KAIROSDB_VERSION | ||
|
||
WORKDIR /home/kairosdb | ||
ADD . /home/kairosdb/git | ||
|
||
RUN cd git && \ | ||
export CLASSPATH=tools/tablesaw-1.2.7.jar && \ | ||
java make package | ||
|
||
RUN tar -xzvf git/build/kairosdb-${KAIROSDB_VERSION}.tar.gz | ||
|
||
FROM openjdk:8-jre-slim-stretch | ||
ARG KAIROSDB_VERSION | ||
ENV KAIROSDB_HOME=/opt/kairosdb-${KAIROSDB_VERSION} | ||
ENV CLASSPATH=${KAIROSDB_HOME}/lib/* | ||
|
||
COPY --from=build /home/kairosdb/kairosdb /opt/kairosdb-${KAIROSDB_VERSION} | ||
|
||
RUN ln -s ${KAIROSDB_HOME}/conf /etc/kairosdb && \ | ||
echo 'export PATH=${KAIROSDB_HOME}/bin:${PATH}' >> /root/.bashrc | ||
|
||
EXPOSE 8080 4242 | ||
|
||
WORKDIR /opt/kairosdb-${KAIROSDB_VERSION}/bin | ||
ENTRYPOINT . ~/.bashrc && kairosdb.sh run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters