Search This Blog

Tuesday, April 17, 2018

How to install openshift origin on laptop locally in 5 minutes

Install vagrant

Run t

$ vagrant init openshift/origin-all-in-one

$ vagrant up --provider=virtualbox



///////////////////

default: You can now access the OpenShift console on: https://10.2.2.2:8443/console
   default:
   default: Configured users are (<username>/<password>):
   default: admin/admin
   default: user/user
   default: But, you can also use any username and password combination you would like to create
   default: a new user.
   default:
   default: You can find links to the client libraries here: https://www.openshift.org/vm
   default: If you have the oc client library on your host, you can also login from your host.
   default:
   default: To use OpenShift CLI, run:
   default: $ oc login https://10.2.2.2:8443

////////////////////////////////


Ssh in to machine


$ vagrant ssh

If you get any cygwin warning from windows, do this.


> set CYGWIN=nodosfilewarning

> vagrant ssh

You will get ssh to the machine.

[root@localhost vagrant]#yum install wget

[root@localhost vagrant]#wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo

[root@localhost vagrant]# yum install apache-maven
First time maven on a pom based project will take a long time to update.

No comments:

Post a Comment