<commit_before># based on Kyle Manna's https://hub.docker.com/r/kylemanna/bitcoind/

FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>

# if this changes from /data/bitcoin, will need to update conf/bitcoind.logrotate as well
ENV HOME /data/bitcoin 

ENV BITCOIN_CONF ${HOME}/bitcoin.conf
ENV BITCOIN_USER bitcoin

# (mainnet) ports
ENV CONN_PORT 8333
ENV RPC_PORT 8332

# For some reason, docker.io (0.9.1~dfsg1-2) pkg in Ubuntu 14.04 has permission
# denied issues when executing /bin/bash from trusted builds.  Building locally
# works fine (strange).  Using the upstream docker (0.11.1) pkg from
# http://get.docker.io/ubuntu works fine also and seems simpler.
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8842ce5e && \
    echo "deb http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu trusty main" > /etc/apt/sources.list.d/bitcoin.list

RUN apt-get update && \
    apt-get install -y bitcoind && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

VOLUME [${HOME}]

RUN mkdir -p ${HOME}
RUN mkdir -p ${HOME}/logs
RUN useradd -s /bin/bash -d ${HOME} ${BITCOIN_USER}
RUN chown ${BITCOIN_USER}:${BITCOIN_USER} -R ${HOME}

ADD conf/bitcoind.logrotate /etc/logrotate.d/bitcoind

EXPOSE ${CONN_PORT} ${RPC_PORT}

CMD bitcoind -conf=${BITCOIN_CONF} -rpcuser=${BITCOIND_RPCUSER} -rpcpassword=${BITCOIND_RPCPASSWORD}<commit_msg>rename bitcoin to bitflow user; move setting down in script<commit_after># based on Kyle Manna's https://hub.docker.com/r/kylemanna/bitcoind/

FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>

# For some reason, docker.io (0.9.1~dfsg1-2) pkg in Ubuntu 14.04 has permission
# denied issues when executing /bin/bash from trusted builds.  Building locally
# works fine (strange).  Using the upstream docker (0.11.1) pkg from
# http://get.docker.io/ubuntu works fine also and seems simpler.
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8842ce5e && \
    echo "deb http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu trusty main" > /etc/apt/sources.list.d/bitcoin.list

RUN apt-get update && \
    apt-get install -y bitcoind && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# if this changes from /data/bitcoin, will need to update conf/bitcoind.logrotate as well
ENV HOME /data/bitcoin 

# if this changes from bitflow, will need to update conf/bitcoind.logrotate as well
ENV BITCOIN_USER bitflow

ENV BITCOIN_CONF ${HOME}/bitcoin.conf

# (mainnet) ports
ENV CONN_PORT 8333
ENV RPC_PORT 8332

VOLUME [${HOME}]

RUN mkdir -p ${HOME}
RUN mkdir -p ${HOME}/logs
RUN useradd -s /bin/bash -d ${HOME} ${BITCOIN_USER}
RUN chown ${BITCOIN_USER}:${BITCOIN_USER} -R ${HOME}

ADD conf/bitcoind.logrotate /etc/logrotate.d/bitcoind

EXPOSE ${CONN_PORT} ${RPC_PORT}

CMD bitcoind -conf=${BITCOIN_CONF} -rpcuser=${BITCOIND_RPCUSER} -rpcpassword=${<PASSWORD>COIND_RPCPASSWORD}
{'fraction_non_alphanumeric': 0.13274647887323943, 'fraction_numerical': 0.02112676056338028, 'mean_word_length': 4.055160142348755, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3580994', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1015, 'n_words': 296}