<commit_before>FROM ubuntu:14.04


####################
# Dependencies
####################

# Note 1: git is required to download the Kudu sources
#       (e.g. it is not a dependency of Kudu itself)
# 
# Note 2: build-essential is required to compile the sources

RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y \
        autoconf automake curl gcc liboauth-dev libssl-dev \
        libsasl2-dev libtool patch python ntp unzip \
        libboost-all-dev pkg-config git build-essential && \
     rm -rf /var/lib/apt/lists/*



####################
# Building Kudu
####################

ENV KUDU_VERSION	master
ENV KUDU_HOME		/usr/local/kudu
ENV PATH		$PATH:$KUDU_HOME/thirdparty/installed/bin:$KUDU_HOME/build/latest

RUN git clone https://github.com/cloudera/kudu.git $KUDU_HOME && \
    cd $KUDU_HOME && \
    ./thirdparty/build-if-necessary.sh && \
    cmake . && \
    make -j8 && \
    make install



####################
# PORTS
####################
#
# https://github.com/cloudera/kudu/blob/master/docs/installation.adoc
# 
# TabletServer:
# 	 8050 = TabletServer Web UI
# 	 8051 = Master Web UI
#
EXPOSE 8050 8051<commit_msg>Adding volume instruction to store data in a separate layer.<commit_after>FROM ubuntu:14.04


####################
# Dependencies
####################

# Note 1: git is required to download the Kudu sources
#       (e.g. it is not a dependency of Kudu itself)
# 
# Note 2: build-essential is required to compile the sources

RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y \
        autoconf automake curl gcc liboauth-dev libssl-dev \
        libsasl2-dev libtool patch python ntp unzip \
        libboost-all-dev pkg-config git build-essential && \
     rm -rf /var/lib/apt/lists/*



####################
# Building Kudu
####################

ENV KUDU_VERSION	master
ENV KUDU_HOME		/usr/local/kudu
ENV PATH		$PATH:$KUDU_HOME/thirdparty/installed/bin:$KUDU_HOME/build/latest

RUN git clone https://github.com/cloudera/kudu.git $KUDU_HOME && \
    cd $KUDU_HOME && \
    ./thirdparty/build-if-necessary.sh && \
    cmake . && \
    make -j8 && \
    make install


VOLUME /data/kudu-master /data/kudu-tserver



####################
# PORTS
####################
#
# https://github.com/cloudera/kudu/blob/master/docs/installation.adoc
# 
# TabletServer:
# 	 8050 = TabletServer Web UI
# 	 8051 = Master Web UI
#
EXPOSE 8050 8051
{'fraction_non_alphanumeric': 0.19438712340074288, 'fraction_numerical': 0.01981015270326042, 'mean_word_length': 3.237762237762238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1481976', 'n_tokens_mistral': 896, 'n_tokens_neox': 823, 'n_words': 201}