Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.43 KB

bonjour.adoc

File metadata and controls

44 lines (34 loc) · 1.43 KB

Deploy bonjour (NodeJS) microservice

Choose one of the following options/approaches to deploy this microservice.

Deploy project via oc CLI

Basic project creation
$ git clone https://github.com/redhat-helloworld-msa/bonjour
$ cd bonjour/
$ oc new-build --binary --name=bonjour -l app=bonjour
$ npm install; oc start-build bonjour --from-dir=. --follow
$ oc new-app bonjour -l app=bonjour
$ oc expose service bonjour
Enable Readiness probe
$ oc set probe dc/bonjour --readiness --get-url=http://:8080/api/health

Test the service endpoint

curl http://bonjour-helloworld-msa.`minishift ip`.nip.io/api/bonjour