<commit_before>FROM ubuntu:14.04
MAINTAINER secondriver <<EMAIL>>

RUN echo 'Redis 3.x version' && \
    cd /tmp && \
    apt-get install -y wget && \
    wget http://download.redis.io/releases/redis-3.0.3.tar.gz && \
    tar xvzf redis-3.0.3.tar.gz && \
    cd redis-3.0.3 && \
    make && \
    cp -f src/redis-sentinel /usr/local/bin && \
    cp -f src/redis-server /usr/local/bin  && \
    cp -f src/redis-cli  /usr/local/bin && \
    cp -f src/redis-check-dump  /usr/local/bin && \
    cp -f src/redis-check-aof  /usr/local/bin && \
    cp -f src/redis-benchmark  /usr/local/bin && \
    mkdir -p /etc/redis && \
    cp -f *.conf  /etc/redis && \
    rm -rf /tmp/redis-3.0.3 && \
    sed -i 's/^\(bind .*\)$/# \1/' /etc/redis/redis.conf && \
    sed -i 's/^\(daemonize .*\)$/# \1/' /etc/redis/redis.conf && \
    sed -i 's/^\(dir .*\)$/# \1\ndir \/data/' /etc/redis/redis.conf && \
    sed -i 's/^\(logfile .*\)$/# \1/' /etc/redis/redis.conf

ENV REDIS_DATA  /data

VOLUME ${REDIS_DATA}

WORKDIR ${REDIS_DATA}
<commit_msg>Modify redis3.x Dockerfile from my ubuntu image.<commit_after>FROM daocloud.io/secondriver/os-ubuntu-base:master-e9f8522
MAINTAINER secondriver <<EMAIL>>

RUN echo 'Redis 3.x version' && \
    cd /tmp && \
    wget http://download.redis.io/releases/redis-3.0.3.tar.gz && \
    tar xvzf redis-3.0.3.tar.gz && \
    cd redis-3.0.3 && \
    make && \
    cp -f src/redis-sentinel /usr/local/bin && \
    cp -f src/redis-server /usr/local/bin  && \
    cp -f src/redis-cli  /usr/local/bin && \
    cp -f src/redis-check-dump  /usr/local/bin && \
    cp -f src/redis-check-aof  /usr/local/bin && \
    cp -f src/redis-benchmark  /usr/local/bin && \
    mkdir -p /etc/redis && \
    cp -f *.conf  /etc/redis && \
    rm -rf /tmp/redis-3.0.3 && \
    sed -i 's/^\(bind .*\)$/# \1/' /etc/redis/redis.conf && \
    sed -i 's/^\(daemonize .*\)$/# \1/' /etc/redis/redis.conf && \
    sed -i 's/^\(dir .*\)$/# \1\ndir \/data/' /etc/redis/redis.conf && \
    sed -i 's/^\(logfile .*\)$/# \1/' /etc/redis/redis.conf

ENV REDIS_DATA  /data

VOLUME ${REDIS_DATA}

WORKDIR ${REDIS_DATA}

{'fraction_non_alphanumeric': 0.2241297091082499, 'fraction_numerical': 0.020982355746304245, 'mean_word_length': 1.9017980636237897, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '468106', 'n_tokens_mistral': 956, 'n_tokens_neox': 927, 'n_words': 174}