<commit_before>#!/bin/bash

set -e
set -x

if [[ "${bosh_target}X" == "X" ]]; then
  echo 'Require $bosh_target, $bosh_username, $bosh_password'
  exit 1
fi

cat > ~/.bosh_config << EOF
---
aliases:
  target:
    bosh-lite: ${bosh_target}
auth:
  ${bosh_target}:
    username: ${bosh_username}
    password: ${<PASSWORD>}
EOF

cd boshrelease
bosh target ${bosh_target}

bosh create release --name postgresql-docker --with-tarball
bosh -n upload release --rebase

./templates/make_manifest garden broker embedded
bosh -n deploy<commit_msg>bosh upload release needs 'file' command<commit_after>#!/bin/bash

set -e
set -x

if [[ "${bosh_target}X" == "X" ]]; then
  echo 'Require $bosh_target, $bosh_username, $bosh_password'
  exit 1
fi

cat > ~/.bosh_config << EOF
---
aliases:
  target:
    bosh-lite: ${bosh_target}
auth:
  ${bosh_target}:
    username: ${bosh_username}
    password: ${<PASSWORD>}
EOF

cd boshrelease
bosh target ${bosh_target}

apt-get -yy install file # TODO missing from upstream

bosh create release --name postgresql-docker --with-tarball
bosh -n upload release --rebase

./templates/make_manifest garden broker embedded
bosh -n deploy
{'fraction_non_alphanumeric': 0.13730569948186527, 'fraction_numerical': 0.0017271157167530224, 'mean_word_length': 3.952991452991453, 'pattern_counts': {'":': 0, '<': 9, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2243550', 'n_tokens_mistral': 436, 'n_tokens_neox': 422, 'n_words': 120}