<commit_before>## Bring up a configured jenkins server

Make sure Ansible, Terraform and [terraform-coreos-box](https://github.com/samsung-cnct/terraform-provider-coreosbox) are installed  

Run:

    $ ./setup.sh --aws-key <aws key> --aws-secret <aws secret> --aws-region <aws region> \
      --aws-prefix testpipe --slack-token <slack api token> --github-id <github app id> \
      --slack-hook-token <outgoing hook token> --github-key <github app key> \
      --github-org <github org> --dump-data yes

### Try it out

Point your browser to

    https://pipelet.kubeme.io

After a self-signed cert SSL warning you should see the jenkins dashboard. Now try:


# To update in place

    ./setup.sh --aws-key <aws key> --aws-secret <aws secret> --aws-region <aws region> \
      --aws-prefix testpipe --slack-token <slack api token> --github-id <github app id> \
      --slack-hook-token <outgoing hook token> --github-key <github app key> \
      --github-org <github org> --dump-data no

No graceful termination / draining is in place, so coordinate with your team members accordingly

# To destroy
Run the terraform destroy command:

    ./destroy.sh --aws-key <aws key> --aws-secret <aws secret> --aws-region <aws region> \
      --aws-prefix testpipe --slack-token <slack api token> --github-id <github app id> \
      --slack-hook-token <outgoing hook token> --github-key <github app key> --github-org <github org>

# Use environment variables<commit_msg>Update README to use ci-name and .env files<commit_after>## Bring up a configured jenkins server

Make sure Ansible, Terraform and [terraform-coreos-box](https://github.com/samsung-cnct/terraform-provider-coreosbox) are installed  

Create an env file or otherwise populate your environment with the required secrets, eg:

    $ cat > .env-testpipe <<EOS
    export AWS_ACCESS_KEY_ID="<aws access key>"
    export AWS_SECRET_ACCESS_KEY="<aws secret key>"
    export AWS_DEFAULT_REGION="<aws region>"
    export SLACK_API_TOKEN="<slack api token>"
    export GITHUB_CLIENT_ID="<github app id>"
    export GITHUB_CLIENT_KEY="<github app key>"
    export GITHUB_ACCESS_TOKEN="<github token>"
    export GITHUB_USERNAME="<github user>"
    EOS

Run:

    $ . .env-testpipe && ./setup.sh --ci-name testpipe --dump-data yes

### Try it out

Point your browser to

    https://testpipe.kubeme.io

After a self-signed cert SSL warning you should see the jenkins dashboard. Now try:


# To update in place

    $ . .env-testpipe && ./setup.sh --ci-name testpipe --dump-data no

No graceful termination / draining is in place, so coordinate with your team members accordingly

# To destroy
Run the terraform destroy command:

    $ . .env-testpipe && ./destroy.sh --ci-name testpipe

# Use environment variables
{'fraction_non_alphanumeric': 0.11803041274438812, 'fraction_numerical': 0.0, 'mean_word_length': 3.1863636363636365, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 36, 'https://': 4, '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': '432636', 'n_tokens_mistral': 868, 'n_tokens_neox': 856, 'n_words': 298}