<commit_before>FROM datacats/web

MAINTAINER boxkite

ENV CKAN_HOME /usr/lib/ckan
ENV BRANCH master

RUN virtualenv $CKAN_HOME && \
    mkdir -p $CKAN_HOME /project /var/www/storage && \
    chown -R www-data:www-data /var/www && \
    git clone --depth 1 --branch $BRANCH https://github.com/ckan/ckan /project/ckan && \
    git clone --branch stable --depth 1 https://github.com/ckan/datapusher /project/datapusher && \
    $CKAN_HOME/bin/pip install -r /project/ckan/requirements.txt && \
    $CKAN_HOME/bin/pip install -e /project/ckan && \
    $CKAN_HOME/bin/pip install ckanapi && \
    $CKAN_HOME/bin/pip install -r /project/datapusher/requirements.txt
<commit_msg>Fully clone CKAN for master image.<commit_after>FROM datacats/web

MAINTAINER boxkite

ENV CKAN_HOME /usr/lib/ckan
ENV BRANCH master

RUN virtualenv $CKAN_HOME && \
    mkdir -p $CKAN_HOME /project /var/www/storage && \
    chown -R www-data:www-data /var/www && \
    git clone --branch $BRANCH https://github.com/ckan/ckan /project/ckan && \
    git clone --branch stable --depth 1 https://github.com/ckan/datapusher /project/datapusher && \
    $CKAN_HOME/bin/pip install -r /project/ckan/requirements.txt && \
    $CKAN_HOME/bin/pip install -e /project/ckan && \
    $CKAN_HOME/bin/pip install ckanapi && \
    $CKAN_HOME/bin/pip install -r /project/datapusher/requirements.txt

{'fraction_non_alphanumeric': 0.13821138211382114, 'fraction_numerical': 0.0022172949002217295, 'mean_word_length': 2.970674486803519, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 8, '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': '4701530', 'n_tokens_mistral': 511, 'n_tokens_neox': 498, 'n_words': 109}