Installation and test of an Openshift cluster on a MAC

– Installing Docker using the mac command:

brew install docker

– Configure Docker below preferences to set the insecure registries to: 172.30.0.0/16

– Installation of OC command line bees using the mac command:

brew install openshift-cli

– Launch the command:

oc cluster up

which installs and launches an Openshift instance locally

– Verify the correct installation of Openshift by connecting to:

https://127.0.0.1:8443

Default users:

system / admin

developer / developer

– Log in to openshift using the command:

oc login https://127.0.0.1:8443

specifying the developer user

– Clone by git a trial application of four services with the command:

git clone https://github.com/flashboss/wildfly-swarm-hystrix-example

– Access the project root and build the application and the four docker images using the command:

mvn clean install docker: build

– Import json build configuration of the project to openshift using the command:

oc create -f wildfly-swarm-microservices-example.json

– Import the application using the command:

oc new-app wildfly-swarm-microservices-example

– Check the installed applications by connecting to the four links:

http://hystrix-dashboard-wildfly-swarm.127.0.0.1.nip.io
http://turbine-wildfly-swarm.127.0.0.1.nip.io
http://employee-app-wildfly-swarm.127.0.0.1.nip.io
http://payroll-app-wildfly-swarm.127.0.0.1.nip.io