Skip to content

Files

Latest commit

d56da6a · Jul 25, 2016

History

History
68 lines (49 loc) · 2.03 KB

bonjour.adoc

File metadata and controls

68 lines (49 loc) · 2.03 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
(Optional) Enable Readiness probe
$ oc set probe dc/bonjour --readiness --get-url=http://:8080/api/health