/aloha

Microservice using Vert.x

Primary LanguageJavaScriptApache License 2.0Apache-2.0

aloha

Aloha microservice using Vert.X

The detailed instructions to run Red Hat Helloworld MSA demo, can be found at the following repository: https://github.com/redhat-helloworld-msa/helloworld-msa

Build and Deploy aloha locally

  1. Open a command prompt and navigate to the root directory of this microservice.

  2. Type this command to build and execute the service:

     mvn clean compile exec:java
    
  3. The application will be running at the following URL: http://localhost:8080/api/aloha

Deploy the application in Openshift using Fabric8 plugin

  1. Make sure to be connected to the Docker Daemon

  2. Execute

     mvn clean package docker:build fabric8:json fabric8:apply
    

ochaloup notes

  Here we go with
    * `mvn package && oc start-build aloha --from-dir=. --follow`

  To check how that works
    * `curl -X GET http://aloha-helloworld-msa-restat.192.168.99.100.nip.io/api/aloha-chaining`

  Usable commands
    * `oc logs -f `oc get pods | grep ^aloha | grep Running | awk '{ print $1 }'``