-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
None
-
App Services Sprint 181, App Services Sprint 183, App Services Sprint 184
In the OpenShift Console switch to the Developer perspective. (Make sure you have selected the `service-binding-demo` project). Navigate to the `+ADD` page from the menu and then click on the `[Import from Git]` button. Fill in the form with the following:
- `Git Repo URL` = `https://github.com/pmacik/nodejs-rest-http-crud`
- `Project` = `service-binding-demo`
- `Application`->`Create New Application` = `NodeJSApp`
- `Name` = `nodejs-rest-http-crud`
- `Builder Image` = `Node.js`
- `Create a route to the application` = checked
Automate the above using :
oc new-app https://github.com/pmacik/nodejs-rest-http-crud
Once done, Validate the following to make sure nodejs application is imported and running in a node
1. Issue the command: oc get bc (build config), once deployment is done, oc will create a buildconfig) and extract the Name field which will be the same as nodejs-rest-http-crud
2. Issue the command: oc get build <<Name from above step1>> -o jsonpath='
' and check the status as "Complete"
3. Issue the command: oc get deployment and fetch the NAME field of the deployment to validate against the name - nodejs-rest-http-crud
4. Issue the command: oc get pods and validate the pods is shown as Running in Status field
5. Issue the command: oc get route nodejs-rest-http-crud -o jsonpath='
'
and make a note of the result which is an end point (host/url) used with http
6. Optional: Issue the below command to fetch the name of the header from the console URL:
curl -L --silent -XGET https:<<Url from step 5>> | grep '(DB: N/A)'