Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
/ eap6-rpm-infra Public archive

SPECS files to packages JBoss EAP6 and the associated Apache HTTPd server.

License

Notifications You must be signed in to change notification settings

rpelisse/eap6-rpm-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jdg-rpm-infra overview

A set of specfile template to generate RPMs for installing JDG libs, and instances. The project is designed to be checkout in our 'rpmbuilder' folder (where you build your RPMs, which should contains the usual RPMS, SRPMS, BUILD, BUILDROOT, and so on directories), and from then automate the SPEC generation - and can also build the RPMs.

This project will help you generate the following RPM:

  • jdg, which contains all the jars and other files requested to run one instance of JDG
  • node[1-n], a package to install one local instance of JDG

Obviously, the number suffixing the node's package, allow you to install several node locally, and take care of setting up the required parameters for such set up. Hence, at the end of day, all you'll need to install a local 3 nodes, local, grid will be:

# yum install -y jdg jdg-node1 jdg-node2 jdg-node3

Once the package is installed, you'll be able to fire up those 3 nodes like that:

# for node in /etc/init.d/jdg-node*
# do
#   service "${node}" start &
# done

And checks if everything went fine with the following logfiles:

# tail -f /var/log/jdg/node-*.conf

You can tweak the settings of the grid itself into the /etc/jdg/configuration/clustered.xml, and the settings of each node in /etc/jdg/node-X.conf.

This project requires to only maintains a couple of template files, from which it generates the required RPM.

Running the project

  1. Setting up the 'rpmbuild' infrastructure

Please refer to available 'rpmbuild' documentation and tutorial.

  1. Generating the SPEC files from the templates

The templates files lives in the templates/ directory. To generate proper SPEC files from those templates, you'll just need to run the following script:

$ ./bin/generate-specs.sh

All values with XXX will be replaced by this script. To change the way the script is updating those value you'll need to edit the 'jdg.properties' (or 'jon.properties for JON) file.

  1. Packaging JDG (and JON) files

NOTICE: if you use Red Hat Satellite, you may have access to package version of JDG and/or JON. If this is the case, please, disregard this step, and simply modify the jdg and jon spec's template to depends on those provided packages.

In order for the spec file for JDG (and JON) to packages the file from those product, you'll need create tarball from the exploded ZIP files provided by Red Hat. An handy script has been provided to do so:

$ export JDG_REPOSITORY=~/downloads/jboss-datagrid-6.1
$ ./bin/make-tarball

The same variables must be set for JON. If the variables are not set, the script will just skip those synchronise.

  1. Build RPMs

Once the two previous script has been ran successfully, you can use the provided commodity script to build everything:

$ ./bin/build-rpms.sh
  1. Build all

In order to represent the all process implemented by the previous script, a 'build-all.sh' script have also been provided:

$ ./bin/build-all.sh

TODO

  • add support for JON local install, with either a local Postgresql instance or a remote

About

SPECS files to packages JBoss EAP6 and the associated Apache HTTPd server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages