-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (19 loc) · 864 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
FROM openjdk:8-jre
LABEL maintainer="Can Elmas <[email protected]>"
ENV DRUID_HOME=/opt/druid
ARG DRUID_VERSION=0.15.0
# druid
RUN curl -O http://ftp.itu.edu.tr/Mirror/Apache/incubator/druid/${DRUID_VERSION}-incubating/apache-druid-${DRUID_VERSION}-incubating-bin.tar.gz \
&& tar xzf apache-druid-${DRUID_VERSION}-incubating-bin.tar.gz \
&& mkdir -p ${DRUID_HOME} \
&& mv apache-druid-${DRUID_VERSION}-incubating druid \
&& mv druid /opt
# mysql connector
RUN curl -O http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.38/mysql-connector-java-5.1.38.jar \
&& mv mysql-connector-java-5.1.38.jar ${DRUID_HOME}/extensions/mysql-metadata-storage
COPY start.sh ${DRUID_HOME}/bin/start.sh
RUN mkdir -p ${DRUID_HOME}/var/tmp
VOLUME ${DRUID_HOME}/var
WORKDIR $DRUID_HOME
EXPOSE 8081-8083 8888 8090
ENTRYPOINT ["bin/start.sh"]