Ansible can be used to automate the bootstrap process to setup Helloworld-MSA in CDK.
Make sure you have the following requirenments installed:
-
Git
-
Ansible 1.9+
-
Maven 3.1+
-
JDK 1.8
-
NPM
And run the following commands:
$ git clone https://github.com/redhat-helloworld-msa/helloworld-msa $ cd helloworld-msa/ansible
First, edit the vars.yaml file to define the 'workdir' variable and set the absolute path where you want to "git checkout" the source code of the microservices.
Then execute:
$ ansible-playbook helloworld-msa.yml
The playbook will take approximately 20 minutes to complete. After that OpenShift should take more 10 minutes to finish the installation and boot of each microservice. The bootstrap process should complete within 30 minutes.
Note
|
This approach is used to make it easy to create an environment with all pieces of this demo. However in a real MSA environment, each microservice can and should be deployed independently. The following instructions allow you to understand the individual process to deploy each microservice. |