<commit_before># kraken-ci

## Bring up a configured jenkins server

Make sure Ansible, Terraform and [terraform-coreos-box](https://github.com/samsung-cnct/terraform-provider-coreosbox) are installed. If you are using brew on OSX, this can be done as follows:

    brew tap 'samsung-cnct/terraform-provider-coreosbox'
    brew install ansible terraform terraform-provider-coreosbox

Create an env file or otherwise populate your environment with the required secrets and settings.

    $ 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>"

    export CI_NAME="testpipe"
    EOS

Run:

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

### Try it out

Point your browser to

    https://testpipe.kubeme.io

You should see the jenkins dashboard. Now try:


# To update in place

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

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

# To destroy

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

# To use test certificates

To test out / verify letsencrypt connectivity using their staging server, use the `--test-instance yes` flag or export `TEST_INSTANCE=yes`.  This will produce invalid certificates that may be rejected by your browser.

# Use environment variables

Instead of specifying all of the command line switches you can export the environment variables used in [utils.sh](utils.sh) file

# Known Issues

- Currently no locking is implemented for the S3 state backend. Coordinate with your team members accordingly.
<commit_msg>Update documenation to reflect known gap in destroy implementation.<commit_after># kraken-ci

## Bring up a configured jenkins server

Make sure Ansible, Terraform and [terraform-coreos-box](https://github.com/samsung-cnct/terraform-provider-coreosbox) are installed. If you are using brew on OSX, this can be done as follows:

    brew tap 'samsung-cnct/terraform-provider-coreosbox'
    brew install ansible terraform terraform-provider-coreosbox

Create an env file or otherwise populate your environment with the required secrets and settings.

    $ 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>"

    export CI_NAME="testpipe"
    EOS

Run:

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

### Try it out

Point your browser to

    https://testpipe.kubeme.io

You should see the jenkins dashboard. Now try:


# To update in place

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

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

# To destroy

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

Note that destroy does not currently destroy the AWS instance and keypair (eg. "testlet-dockermachine") created when the first job is run. Therefore you must manually delete these resources using the AWS console.

# To use test certificates

To test out / verify letsencrypt connectivity using their staging server, use the `--test-instance yes` flag or export `TEST_INSTANCE=yes`.  This will produce invalid certificates that may be rejected by your browser.

# Use environment variables

Instead of specifying all of the command line switches you can export the environment variables used in [utils.sh](utils.sh) file

# Known Issues

- Currently no locking is implemented for the S3 state backend. Coordinate with your team members accordingly.

{'fraction_non_alphanumeric': 0.07961309523809523, 'fraction_numerical': 0.000496031746031746, 'mean_word_length': 3.9484662576687115, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 21, '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': '547270', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1150, 'n_words': 456}