Posts

Showing posts from November, 2015

Build maven-based RPM's

In an daily DevOps world it's necessary to have an easy to use mechanism for a revisionable software deployment. Especially when continuous integration comes to play, in terms of installing, upgrading and deleting software in an easy and proven way. Why not use RPM for that? The great is, Maven can do that easily. Prerequisites : Eclipse (or IntelliJ or any other editor) maven (command "mvn" has to work on command line) git (command "git" should work on command line) rpm build ( sudo yum install rpm-build ) Building an RPM works on Linux systems like RedHat or CentOS. Guide : Build the project, so that the targets are available locally (skipTest if they fail on your PC, e.g. because of missing MongoDB or TomCat or ...).  The following params are necessary to get it working properly: directory = where the code should be placed after the RPM is rolled out filemode = permissions for the installed code username = UID  groupname = G