-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
40 lines (30 loc) · 997 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
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM openjdk:8-jre-alpine
MAINTAINER Avi Deitcher <https://github.com/deitch>
EXPOSE 8081 8082 8083 8090 8091
# Java config
ENV DRUID_VERSION 0.9.2
# Druid env variable
ENV DRUID_XMX '-'
ENV DRUID_XMS '-'
ENV DRUID_NEWSIZE '-'
ENV DRUID_MAXNEWSIZE '-'
ENV DRUID_HOSTNAME '-'
ENV DRUID_LOGLEVEL '-'
ENV DRUID_USE_CONTAINER_IP '-'
RUN apk add --update wget tar bash
RUN mkdir -p /opt
RUN wget -q --no-check-certificate --no-cookies -O - \
http://static.druid.io/artifacts/releases/druid-$DRUID_VERSION-bin.tar.gz | tar -xzf - -C /opt \
&& ln -s /opt/druid-$DRUID_VERSION /opt/druid
COPY conf /opt/druid-$DRUID_VERSION/conf
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN mkdir -p /tmp/druid \
/tmp/druid/persistent/task \
/var/tmp \
/var/druid/indexing-logs \
/var/druid/segments \
/var/druid/segment-cache \
/var/druid/task \
/var/druid/hadoop-tmp \
/var/druid/pids
ENTRYPOINT ["/docker-entrypoint.sh"]