Monday, January 11, 2016

Fabric Deployment Fuse

Deployments with Fuse And Fabric are very easy , there is a lot of automation available with in fabric which makes writing of scripts to manage devops a redundant process. In this post I am going explore two different ways of pushing changes to Jboss Fuse.

The versions of the products I am using are
  1. Fuse 6.2.1 (bom version : 6.2.1.redhat-084). 
  2. Fabric8 1.2.0.redhat-621084 (fabric maven plugin version : 1.2.0.redhat-133).
Using Fuse Profile Git - Manually

  • Once Fuse Fabric Environment is setup on your local or server. 
  • Go to http://<serverip>:8181
  • Log in to Hawtio using your username and password 
  • Navigate to the Containers , click on the root container navigate to Urls tab and copy the Git Url , it should look like "http://admin:admin@smunirAT-OSX:8181/git/fabric”. 
  • Open your eclipse clone the repository , provide the username and password if prompted. 
  • Create a new branch with a different version number
  • Navigate to the working directory on the Git repo cloned , and import the fabric directory as general project to eclipse .
  • All the profiles which are now the part fo the branch you checked out from git should now appear in eclipse.
  • Edit the file io.fabric8.agent.properties file and change the repositories , features and bundles that you need to add / remove /modify on the profile


 #To add a repository to the profile use the below keyword   
 repository.  
 <repository-name>=mvn\:groupid/<artifactid/version/type/classifer  
   
 #To add a feature to a profile use the below keyword features  
 feature.<feature-name>=<feature-name>  
   
 #To add a bundle to a profile use the below keyword  
 bundle.mvn\:groupid/artifactid/version= mvn\: groupid/artifactid/version  
   
  • Commit to the git repo and push to the remote repositories
Video for Demo Project




Look for The automated part of the above ....in my next post

No comments:

Post a Comment