Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selenium-webdriver-rpm

What is this spec?

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.

How to build

Fedora/RHEL/CentOS

make

SRPM will be built to ~/rpmbuild/SRPMS/

RPMs will be built to ~/rpmbuild/RPMS/noarch/

What do the 3 built .rpm files provide?

  • 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/

Work to do, problems to fix:

  • 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.

rpmlint

  • 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

Distro support

Tested on:

  • RHEL 6.4
  • Fedora 19

About

Spec files for packaging Selenium WebDriver standalone server for install on RHEL, Fedora, and other RPM based Linux systems

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages