<commit_before>#!/bin/bash
#
#  Please set the following environment variables:
#  $DB_PASSWORD
#  $CONCOURSE_URL
#  $GITHUB_ORG
#  $GITHUB_CLIENT_ID
#  $GITHUB_CLIENT_SECRET

DIRECTOR_UUID=`bosh status --uuid`

echo "director_uuid = $DIRECTOR_UUID"
echo "concourse url = $CONCOURSE_URL"
echo "GitHub Org = $GITHUB_ORG"

cat >concourse.yml <<YAML
---
name: concourse

director_uuid: $DIRECTOR_UUID

releases:
- name: concourse
  version: latest
- name: garden-runc
  version: latest

stemcells:
- alias: trusty
  os: ubuntu-trusty
  version: latest

instance_groups:<commit_msg>ensure env vars are set when generating Concourse manifest<commit_after>#!/bin/bash
#

: "${DB_PASSWORD:?Need to set DB_PASSWORD non-empty}"
: "${CONCOURSE_URL:?Need to set CONCOURSE_URL non-empty}"
: "${GITHUB_ORG:?Need to set GITHUB_ORG non-empty}"
: "${GITHUB_CLIENT_ID:?Need to set GITHUB_CLIENT_ID non-empty}"
: "${GITHUB_CLIENT_SECRET:?Need to set GITHUB_CLIENT_SECRET non-empty}"

DIRECTOR_UUID=`bosh status --uuid`

echo "director_uuid = $DIRECTOR_UUID"
echo "concourse url = $CONCOURSE_URL"
echo "GitHub Org = $GITHUB_ORG"

cat >concourse.yml <<YAML
---
name: concourse

director_uuid: $DIRECTOR_UUID

releases:
- name: concourse
  version: latest
- name: garden-runc
  version: latest

stemcells:
- alias: trusty
  os: ubuntu-trusty
  version: latest

instance_groups:
{'fraction_non_alphanumeric': 0.11578171091445427, 'fraction_numerical': 0.0, 'mean_word_length': 5.282407407407407, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '5424519', 'n_tokens_mistral': 547, 'n_tokens_neox': 528, 'n_words': 121}