Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.47 KB

hola.adoc

File metadata and controls

48 lines (37 loc) · 1.47 KB

Deploy hola (JAX-RS/Microprofile/Thorntail) microservice

(Option 1) Deploy project via oc CLI

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

(Option 2) Deploy project via Fabric8 Maven Plugin

$ mvn package fabric8:deploy

Test the service endpoint

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