Skip to content

Building MyForge RPMs at home

hgomez edited this page Jan 24, 2013 · 11 revisions

Let's build RPMs at home

Process is really easy

Fetch project from GitHub

git clone https://github.com/hgomez/devops-incubator.git

Build a Jenkins RPM package

cd devops-incubator/rpm-packaging/myjenkins
./build.sh

Check built package (1.499-1 here)

rpm -qpi RPMS/noarch/myjenkins-1.499-1.noarch.rpm

You should get something like this :

Name        : myjenkins
Version     : 1.499
Release     : 1
Architecture: noarch
Install Date: (not installed)
Group       : Development/Tools
Size        : 55784483
License     : MIT
Signature   : (none)
Source RPM  : myjenkins-1.499-1.src.rpm
Build Date  : jeu. 24 janv. 2013 10:48:25 CET
Build Host  : envy-rico.hgomez.net
Relocations : (not relocatable)
Vendor      : devops-incubator
URL         : https://github.com/hgomez/devops-incubator
Summary     : Jenkins 1.499 powered by Apache Tomcat 7.0.35
Description :
Jenkins 1.499 powered by Apache Tomcat 7.0.35
Distribution: (none)

Install built package (Jenkins)

sudo rpm -Uvh RPMS/noarch/myjenkins-1.499-1.noarch.rpm

Start service from installed package (Jenkins)

sudo service myjenkins start

Then use your browser to connect Jenkins, HTTP on port 12355.

Stop service from installed package (Jenkins)

sudo service myjenkins stop