<commit_before>OpenShift 3 Application Lifecycle Sample
========================================

This is a set of configuration files and scripts which work with Openshift 3 to create a new application and perform application builds.

This example assumes you have successfully built the `openshift` binary executable and have Docker installed/working.  See https://github.com/openshift/origin/blob/master/CONTRIBUTING.adoc.


Application Build, Deploy, and Update Flow
--------------
This section covers how to perform all the steps of building, deploying, and updating an application on the OpenShift platform.

Note:  If you just want to quickly validate your environment or see the expected results, you can run the quickstart script described [here](QUICKSTART.md)

All commands assume the `openshift` binary is in your path:

1. Launch `openshift`

        $ DOCKER_REGISTRY=localhost:5000 openshift start --listenAddr="0.0.0.0:8080" &> logs/openshift.log &

2. Deploy the private docker registry within OpenShift:

        $ openshift kube apply -c registry_config/registry_config.json

3. Confirm the registry is started (this can take a few mins):

        $ openshift kube list pods
        
    You should see:
            
        ID                                                  Image(s)                   Host                Labels                                                      Status
        ----------                                          ----------                 ----------          ----------                                                  ----------
        05929ee5-3fb2-11e4-a043-3c970e3bf0b7                registry                   127.0.0.1/          name=frontendPod,replicationController=frontendController   Running

                 
4. Fork the [ruby sample repository](https://github.com/openshift/ruby-hello-world)

5. *Optional:* Add the following webhook to your new github repository:

        $ http://<host>:8080/osapi/v1beta1/buildConfigHooks/build100/secret101/github
  * Note: Using the webhook requires your OpenShift server be publicly accessible so github can reach it to invoke the hook.

6. Edit buildcfg/buildcfg.json
 * Update the sourceURI to point to your forked repository.

7. Create a build configuration for your application.  This configuration is used by OpenShift to rebuild your application's Docker image (e.g. when you push changes to the application source).
<commit_msg>remove DOCKER_REGISTRY env variable definition<commit_after>OpenShift 3 Application Lifecycle Sample
========================================

This is a set of configuration files and scripts which work with Openshift 3 to create a new application and perform application builds.

This example assumes you have successfully built the `openshift` binary executable and have Docker installed/working.  See https://github.com/openshift/origin/blob/master/CONTRIBUTING.adoc.


Application Build, Deploy, and Update Flow
--------------
This section covers how to perform all the steps of building, deploying, and updating an application on the OpenShift platform.

Note:  If you just want to quickly validate your environment or see the expected results, you can run the quickstart script described [here](QUICKSTART.md)

All commands assume the `openshift` binary is in your path:

1. Launch `openshift`

        $ openshift start --listenAddr="0.0.0.0:8080" &> logs/openshift.log &

2. Deploy the private docker registry within OpenShift:

        $ openshift kube apply -c registry_config/registry_config.json

3. Confirm the registry is started (this can take a few mins):

        $ openshift kube list pods
        
    You should see:
            
        ID                                                  Image(s)                   Host                Labels                                                      Status
        ----------                                          ----------                 ----------          ----------                                                  ----------
        05929ee5-3fb2-11e4-a043-3c970e3bf0b7                registry                   127.0.0.1/          name=frontendPod,replicationController=frontendController   Running

                 
4. Fork the [ruby sample repository](https://github.com/openshift/ruby-hello-world)

5. *Optional:* Add the following webhook to your new github repository:

        $ http://<host>:8080/osapi/v1beta1/buildConfigHooks/build100/secret101/github
  * Note: Using the webhook requires your OpenShift server be publicly accessible so github can reach it to invoke the hook.

6. Edit buildcfg/buildcfg.json
 * Update the sourceURI to point to your forked repository.

7. Create a build configuration for your application.  This configuration is used by OpenShift to rebuild your application's Docker image (e.g. when you push changes to the application source).

{'fraction_non_alphanumeric': 0.0934312525499796, 'fraction_numerical': 0.023663810689514484, 'mean_word_length': 2.0875314861460956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6699732', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1095, 'n_words': 469}