This spec is a first attempt for packaging selenium standalone server (see http://seleniumhq.org/), and some init.d scripts I hacked together for running a selenium grid (see https://code.google.com/p/selenium/wiki/Grid2) as RPMS for install on RHEL, Fedora, and other RPM based Linux systems.
My goal is to eventually submit this to EPEL and become a package maintainer. I have a long way to go ;)
DISCLAIMER: I MAKE NO CLAIM THAT I KNOW WHAT I AM DOING. USE AT YOUR OWN RISK! Watch this space for improved and refined versions as I learn more about how to properly package RPMs and daemons. I welcome and appreciate your feedback, assistance, or patches.
make
SRPM will be built to ~/rpmbuild/SRPMS/
RPMs will be built to ~/rpmbuild/RPMS/noarch/
- selenium rpm packaged version of selenium-server-standalone jar from http://seleniumhq.org/download/
- selenium-grid-hub rpm packaged daemon script that will start a selenium grid hub. Configuration files can be found in /etc/selenium/
- selenium-grid-node rpm packaged daemon script that will start a selenium grid node. Browsers will be run in an XVFB session. Configuration files can also be found in /etc/selenium/
- selenium-server-standalone is packaged from a downloaded binary. It will need to be built from source to meet Fedora/EPEL packaging standards.
- selenium-grid-hub and selenium-grid-node /etc/init.d scripts are not very fault tolerant. They sometimes leave lockfiles in place or don't properly stop the selenium thread.
- Documentation in this file is not sufficient. I would like to add man files to the RPMS.
- selenium.noarch: W: name-repeated-in-summary C Selenium
- selenium.noarch: W: no-documentation
- selenium.noarch: W: log-files-without-logrotate /var/log/selenium
- selenium-grid-hub.noarch: W: no-documentation
- selenium-grid-hub.noarch: E: no-status-entry /etc/rc.d/init.d/selenium-grid-hub
- selenium-grid-hub.noarch: W: no-reload-entry /etc/rc.d/init.d/selenium-grid-hub
- selenium-grid-hub.noarch: E: no-chkconfig-line /etc/rc.d/init.d/selenium-grid-hub
- selenium-grid-hub.noarch: E: subsys-not-used /etc/rc.d/init.d/selenium-grid-hub
- selenium-grid-node.noarch: W: no-documentation
- selenium-grid-node.noarch: E: no-status-entry /etc/rc.d/init.d/selenium-grid-node
- selenium-grid-node.noarch: W: no-reload-entry /etc/rc.d/init.d/selenium-grid-node
- selenium-grid-node.noarch: E: no-chkconfig-line /etc/rc.d/init.d/selenium-grid-node
- selenium-grid-node.noarch: E: subsys-not-used /etc/rc.d/init.d/selenium-grid-node
Tested on:
- RHEL 6.4
- Fedora 19