Skip to content

Instantly share code, notes, and snippets.

@doron2402
Created February 11, 2017 00:15
Show Gist options
  • Save doron2402/8dad4a2d42f0553419fb60f1562556e6 to your computer and use it in GitHub Desktop.
Save doron2402/8dad4a2d42f0553419fb60f1562556e6 to your computer and use it in GitHub Desktop.
Dockerfile Druid
FROM progrium/busybox
MAINTAINER Doron Segal <[email protected]>
# Java config
ENV DRUID_VERSION 0.9.1.1
ENV JAVA_HOME /opt/jre1.8.0_40
ENV PATH $PATH:/opt/jre1.8.0_40/bin
# Druid env variable
ENV DRUID_XMX '-'
ENV DRUID_XMS '-'
ENV DRUID_NEWSIZE '-'
ENV DRUID_MAXNEWSIZE '-'
ENV DRUID_HOSTNAME '-'
ENV DRUID_LOGLEVEL '-'
RUN opkg-install wget tar bash \
&& mkdir /tmp/druid
RUN wget -q --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" -O - \
http://download.oracle.com/otn-pub/java/jdk/8u40-b26/jre-8u40-linux-x64.tar.gz | tar -xzf - -C /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
ENTRYPOINT ["/docker-entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment