Last active
October 23, 2015 14:06
-
-
Save praveenkumar/2b54d9351b41f1ecd7fa to your computer and use it in GitHub Desktop.
Openshift Experiment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Running Openshift in adb virtual-box | |
| ------------------------------------ | |
| 1. Note adb virtual box already running etcd service which using port | |
| 7001 then stop those service (In my case, kubernetes/etcd service was | |
| running and due to that openshift/origin container was not able to run) | |
| BZ #1271468 | |
| 2. Start openshift origin container | |
| ``` | |
| $ sudo docker run -d --name "origin" \ | |
| --privileged --net=host \ | |
| -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker:/var/lib/docker:rw \ | |
| -v /var/lib/openshift/openshift.local.volumes:/var/lib/openshift/openshift.local.volumes \ | |
| openshift/origin start | |
| ``` | |
| 3. Install oc to host | |
| ``` | |
| https://access.redhat.com/downloads/content/290/ver=3.0.0.0/rhel---7/3.0.2.0/x86_64/product-downloads | |
| ``` | |
| 4. Deploy sample application using oc | |
| ``` | |
| $ oc login | |
| Username: test | |
| Password: test | |
| ``` | |
| 5. Create a new project | |
| ``` | |
| $ oc new-project test | |
| ``` | |
| 6. Create new app using **test** project | |
| ``` | |
| $ oc new-app openshift/deployment-example | |
| ``` | |
| 7. Check application status | |
| ``` | |
| $ oc status | |
| ``` | |
| Routing:- https://github.com/openshift/origin/blob/master/docs/routing.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment