Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.71 KB

frontend.adoc

File metadata and controls

59 lines (41 loc) · 1.71 KB

Deploy frontend (NodeJS/HTML5/JS)

frontend

Choose one of the following options/approaches to deploy the UI.

Deploy project via oc CLI

Basic project creation
$ git clone https://github.com/redhat-helloworld-msa/frontend
$ cd frontend/
$ oc new-build --binary --name=frontend -l app=frontend
$ npm install; oc start-build frontend --from-dir=. --follow
$ oc new-app frontend -l app=frontend
$ oc expose service frontend
Specify the OpenShift domain
$ oc set env dc/frontend OS_SUBDOMAIN=<OPENSHIFT-DOMAIN>

# Using CDK
$ oc set env dc/frontend OS_SUBDOMAIN=`minishift ip`.nip.io

# Example: OS_SUBDOMAIN=192.168.64.11.nip.io
$ oc set env dc/frontend OS_SUBDOMAIN=192.168.64.11.nip.io
(Optional) Enable Readiness probe
$ oc set probe dc/frontend --readiness --get-url=http://:8080/

Test the service endpoint