<commit_before>OpenShift 3 Alpha
=================

This is the source repository for the next version of OpenShift - the third architectural revision.  It is based around [Docker](https://www.docker.io) containers and images and the [Kubernetes](https://github.com/GoogleCloudPlatform/kubernetes) container management solution.  OpenShift adds developer  centric and organization centric workflows on top of Kubernetes, and much of the core functionality of OpenShift is designed as plugins to the core Kubernetes concepts.

Please see the [OpenShift 3 Project Enhancement Proposal (PEP)](https://github.com/openshift/openshift-pep/blob/master/openshift-pep-013-openshift-3.md) for a deeper discussion of the features you see here.

NOTE: This is a very early prototype, and as such is designed for rapid iteration around core concepts.

[![GoDoc](https://godoc.org/github.com/openshift/origin?status.png)](https://godoc.org/github.com/openshift/origin)
[![Travis](https://travis-ci.org/openshift/origin.svg?branch=master)](https://travis-ci.org/openshift/origin)

Getting Started
---------------

You'll need Docker and the Go language compilation tools installed.

1.  [Install Docker](https://docs.docker.com/installation/#installation)
    and add your user to the 'docker' group

        $ sudo usermod -G docker -a `whoami`
        $ newgrp docker

    After doing this, confirm you can list docker processes as your user:

        $ docker ps

2.  [Install the Go language toolkit](http://golang.org/doc/install) and set your [GOPATH](http://golang.org/doc/code.html#GOPATH)
3.  Clone this git repository through the Go tools:

        $ go get github.com/openshift/origin
        $ cd $GOPATH/src/github.com/openshift/origin

4.  Run a build

        $ hack/build-go.sh

5.  Start an OpenShift all-in-one server (includes everything you need to try OpenShift)

        $ output/go/bin/openshift start

6.  In another terminal window, switch to the directory:

        $ cd $GOPATH/src/github.com/openshift/origin
        $ output/go/bin/openshift kube create pods -c examples/hello-openshift/hello-pod.json

7.  You should then be able to open a browser on your machine and point to [http://localhost:6061](http://localhost:6061) and see a 'Welcome to OpenShift message'.  This example is simply [running the 'openshift/hello-openshift' Docker image](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json#L11) which is [built on Docker Hub](https://registry.hub.docker.com/u/openshift/hello-openshift/).  That [image binds to port 8080](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello_openshift.go#L16) and [prints out a simple 'Hello OpenShift' message on access](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello_openshift.go#L9).  In the Kubernetes definition, we map [that bound port in the container](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json#L13) [to port 6061 on the host](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json#L14) so that we can access it via the host browser.

    You can also try the [multiple container pod](https://github.com/openshift/origin/blob/master/examples/test-pod-multi.json) example that includes a database and an admin front-end.

Coming soon: Vagrant environments supporting OpenShift - see [Kubernetes README.md](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/README.md) for now.


Design Documents
----------------

OpenShift designs:

* [OpenShift 3 PEP](https://github.com/openshift/openshift-pep/blob/master/openshift-pep-013-openshift-3.md)
* [Orchestration Overview](https://github.com/openshift/origin/blob/master/docs/orchestration.md)

Kubernetes designs are in [the Kubernetes docs dir](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/)

API
---

The OpenShift APIs are exposed at `http://localhost:8081/osapi/v1beta1/*`.

* `http://localhost:8081/osapi/v1beta1/services` (placeholder)

The Kubernetes APIs are exposed at `http://localhost:8080/api/v1beta1/*`:

* `http://localhost:8080/api/v1beta1/pods`
* `http://localhost:8080/api/v1beta1/services`
* `http://localhost:8080/api/v1beta1/replicationControllers`
* `http://localhost:8080/api/v1beta1/operations`

Several experimental API objects are being prototyped upstream, and are included here for integration testing:

* `http://localhost:8080/osapi/v1beta1/images`
* `http://localhost:8080/osapi/v1beta1/imagesByRepository`
* `http://localhost:8080/osapi/v1beta1/imageRepositories`
* `http://localhost:8080/osapi/v1beta1/builds`
* `http://localhost:8080/osapi/v1beta1/buildConfigs`

A draft of the proposed API is available at https://rawgit.com/openshift/origin/master/api/oov3.html and is developed under the [api](./api) directory.  Expect significant changes.


FAQ
---

1. How does OpenShift relate to Kubernetes?

    OpenShift embeds Kubernetes and adds additional functionality to offer a simple, powerful, and easy-to-approach developer and operator experience for building applications in containers.  Kubernetes today is focused around composing containerized applications - OpenShift adds building images, managing them, and integrating them into deployment flows.  Our goal is to do most of that work upstream, with integration and final packaging occuring in OpenShift.  As we iterate through the next few months, you'll see this repository focus more on integration and plugins, with more and more features becoming part of Kubernetes.
<commit_msg>Fix OpenShift API port in README<commit_after>OpenShift 3 Alpha
=================

This is the source repository for the next version of OpenShift - the third architectural revision.  It is based around [Docker](https://www.docker.io) containers and images and the [Kubernetes](https://github.com/GoogleCloudPlatform/kubernetes) container management solution.  OpenShift adds developer  centric and organization centric workflows on top of Kubernetes, and much of the core functionality of OpenShift is designed as plugins to the core Kubernetes concepts.

Please see the [OpenShift 3 Project Enhancement Proposal (PEP)](https://github.com/openshift/openshift-pep/blob/master/openshift-pep-013-openshift-3.md) for a deeper discussion of the features you see here.

NOTE: This is a very early prototype, and as such is designed for rapid iteration around core concepts.

[![GoDoc](https://godoc.org/github.com/openshift/origin?status.png)](https://godoc.org/github.com/openshift/origin)
[![Travis](https://travis-ci.org/openshift/origin.svg?branch=master)](https://travis-ci.org/openshift/origin)

Getting Started
---------------

You'll need Docker and the Go language compilation tools installed.

1.  [Install Docker](https://docs.docker.com/installation/#installation)
    and add your user to the 'docker' group

        $ sudo usermod -G docker -a `whoami`
        $ newgrp docker

    After doing this, confirm you can list docker processes as your user:

        $ docker ps

2.  [Install the Go language toolkit](http://golang.org/doc/install) and set your [GOPATH](http://golang.org/doc/code.html#GOPATH)
3.  Clone this git repository through the Go tools:

        $ go get github.com/openshift/origin
        $ cd $GOPATH/src/github.com/openshift/origin

4.  Run a build

        $ hack/build-go.sh

5.  Start an OpenShift all-in-one server (includes everything you need to try OpenShift)

        $ output/go/bin/openshift start

6.  In another terminal window, switch to the directory:

        $ cd $GOPATH/src/github.com/openshift/origin
        $ output/go/bin/openshift kube create pods -c examples/hello-openshift/hello-pod.json

7.  You should then be able to open a browser on your machine and point to [http://localhost:6061](http://localhost:6061) and see a 'Welcome to OpenShift message'.  This example is simply [running the 'openshift/hello-openshift' Docker image](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json#L11) which is [built on Docker Hub](https://registry.hub.docker.com/u/openshift/hello-openshift/).  That [image binds to port 8080](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello_openshift.go#L16) and [prints out a simple 'Hello OpenShift' message on access](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello_openshift.go#L9).  In the Kubernetes definition, we map [that bound port in the container](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json#L13) [to port 6061 on the host](https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json#L14) so that we can access it via the host browser.

    You can also try the [multiple container pod](https://github.com/openshift/origin/blob/master/examples/test-pod-multi.json) example that includes a database and an admin front-end.

Coming soon: Vagrant environments supporting OpenShift - see [Kubernetes README.md](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/README.md) for now.


Design Documents
----------------

OpenShift designs:

* [OpenShift 3 PEP](https://github.com/openshift/openshift-pep/blob/master/openshift-pep-013-openshift-3.md)
* [Orchestration Overview](https://github.com/openshift/origin/blob/master/docs/orchestration.md)

Kubernetes designs are in [the Kubernetes docs dir](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/)

API
---

The OpenShift APIs are exposed at `http://localhost:8080/osapi/v1beta1/*`.

* `http://localhost:8080/osapi/v1beta1/services` (placeholder)

The Kubernetes APIs are exposed at `http://localhost:8080/api/v1beta1/*`:

* `http://localhost:8080/api/v1beta1/pods`
* `http://localhost:8080/api/v1beta1/services`
* `http://localhost:8080/api/v1beta1/replicationControllers`
* `http://localhost:8080/api/v1beta1/operations`

Several experimental API objects are being prototyped upstream, and are included here for integration testing:

* `http://localhost:8080/osapi/v1beta1/images`
* `http://localhost:8080/osapi/v1beta1/imagesByRepository`
* `http://localhost:8080/osapi/v1beta1/imageRepositories`
* `http://localhost:8080/osapi/v1beta1/builds`
* `http://localhost:8080/osapi/v1beta1/buildConfigs`

A draft of the proposed API is available at https://rawgit.com/openshift/origin/master/api/oov3.html and is developed under the [api](./api) directory.  Expect significant changes.


FAQ
---

1. How does OpenShift relate to Kubernetes?

    OpenShift embeds Kubernetes and adds additional functionality to offer a simple, powerful, and easy-to-approach developer and operator experience for building applications in containers.  Kubernetes today is focused around composing containerized applications - OpenShift adds building images, managing them, and integrating them into deployment flows.  Our goal is to do most of that work upstream, with integration and final packaging occuring in OpenShift.  As we iterate through the next few months, you'll see this repository focus more on integration and plugins, with more and more features becoming part of Kubernetes.

{'fraction_non_alphanumeric': 0.11391840014284439, 'fraction_numerical': 0.020890991875725382, 'mean_word_length': 4.380403458213256, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 40, 'lorem ipsum': 0, 'www.': 2, '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': '3885950', 'n_tokens_mistral': 3512, 'n_tokens_neox': 3185, 'n_words': 987}