To get started, first we need to login to OpenShift.
To login to the OpenShift cluster use the following command in your Terminal:
oc login -u developer -p developer
This will log you in using the credentials:
You should see the output:
Login successful. Now we need to create a Project space in OpenShift for our API. In OpenShift we can create a new project by running oc new-project <projectname>
For out project let's create a project called
jberet-lab by running the command:
oc new-project jberet-lab
You should see output similar to:
Now using project "jberet-lab" on server "https://172.17.0.41:8443". You can add applications to this project with the 'new-app' command. For example, try: oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git to build a new example application in Ruby.
We are not going to use the web console for this course, but if you want to check anything from the web console, switch to the Dashboard and use the same credentials to login as you used above to login from the command line.