<commit_before>FROM ubuntu:bionic

COPY --from=bosh/bosh-ecosystem-concourse:latest /usr/local/bin/bosh /usr/local/bin/bosh

RUN apt-get update && \
    apt-get install -y \
        curl \
        git \
        jq

ADD ci/docker/entry.sh /usr/local/bin/entry.sh
ADD . /tmp/release

RUN cd /tmp/release && \
    bosh sync-blobs && \
    mkdir -p /var/vcap/packages && mkdir -p /var/vcap/data && \
    for package in $(ls /tmp/release/packages | grep linux | grep -v test); do \
        rm -rf /tmp/workspace && \
        mkdir /tmp/workspace && \
        cp -r /tmp/release/src/* /tmp/workspace/ && \
        blob_filename=$(bosh int /tmp/release/packages/$package/spec --path /files | grep -o "go1.*.tar.gz") && \
        cp /tmp/release/blobs/${blob_filename} /tmp/workspace && \
        chmod +x /tmp/release/packages/$package/packaging && \
        mkdir -p /var/vcap/packages/$package && \
        cd /tmp/workspace && \
        BOSH_INSTALL_TARGET=/var/vcap/packages/$package /tmp/release/packages/$package/packaging && \
        cd /tmp; \
    done && \
    rm -r /tmp/release /tmp/workspace<commit_msg>Don't copy the non-existent entry script<commit_after>FROM ubuntu:bionic

COPY --from=bosh/bosh-ecosystem-concourse:latest /usr/local/bin/bosh /usr/local/bin/bosh

RUN apt-get update && \
    apt-get install -y \
        curl \
        git \
        jq

ADD . /tmp/release

RUN cd /tmp/release && \
    bosh sync-blobs && \
    mkdir -p /var/vcap/packages && mkdir -p /var/vcap/data && \
    for package in $(ls /tmp/release/packages | grep linux | grep -v test); do \
        rm -rf /tmp/workspace && \
        mkdir /tmp/workspace && \
        cp -r /tmp/release/src/* /tmp/workspace/ && \
        blob_filename=$(bosh int /tmp/release/packages/$package/spec --path /files | grep -o "go1.*.tar.gz") && \
        cp /tmp/release/blobs/${blob_filename} /tmp/workspace && \
        chmod +x /tmp/release/packages/$package/packaging && \
        mkdir -p /var/vcap/packages/$package && \
        cd /tmp/workspace && \
        BOSH_INSTALL_TARGET=/var/vcap/packages/$package /tmp/release/packages/$package/packaging && \
        cd /tmp; \
    done && \
    rm -r /tmp/release /tmp/workspace
{'fraction_non_alphanumeric': 0.16196542311191992, 'fraction_numerical': 0.0009099181073703367, 'mean_word_length': 2.0123287671232877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6470098', 'n_tokens_mistral': 783, 'n_tokens_neox': 753, 'n_words': 159}