Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes mysqld issue and updates zookeeper #50

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:14.04
# Set version and github repo which you want to build from
ENV GITHUB_OWNER druid-io
ENV DRUID_VERSION 0.9.2
ENV ZOOKEEPER_VERSION 3.4.11
ENV ZOOKEEPER_VERSION 3.4.12

# Java 8
RUN apt-get update \
Expand Down Expand Up @@ -62,7 +62,8 @@ WORKDIR /

# Setup metadata store and add sample data
ADD sample-data.sql sample-data.sql
RUN /etc/init.d/mysql start \
RUN find /var/lib/mysql -type f -exec touch {} \; \
&& /etc/init.d/mysql start \
&& mysql -u root -e "GRANT ALL ON druid.* TO 'druid'@'localhost' IDENTIFIED BY 'diurd'; CREATE database druid CHARACTER SET utf8;" \
&& java -cp /usr/local/druid/lib/druid-services-*-selfcontained.jar \
-Ddruid.extensions.directory=/usr/local/druid/extensions \
Expand Down Expand Up @@ -92,4 +93,4 @@ EXPOSE 3306
EXPOSE 2181 2888 3888

WORKDIR /var/lib/druid
ENTRYPOINT export HOSTIP="$(resolveip -s $HOSTNAME)" && exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
ENTRYPOINT export HOSTIP="$(resolveip -s $HOSTNAME)" && find /var/lib/mysql -type f -exec touch {} \; && exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf