apr 29 2012

CBS – Ready??

I now think I have gotten the last problems sorted out, and CBS is now running perfectly on my CentOS server..

Signing service is now also working..

I’m still missing a few RHEL dependencies, but I hope to get this sorted out soon…

Once again, the installation instructions:

First of all, remember to setup either DNS or /etc/hosts to match hostname of the server…

RHEL6:

wget -O /etc/yum.repos.d/RHEL-CBS.repo http://download.opensuse.org/repositories/home:/martin-juhl:/branches:/openSUSE:/Tools/RHEL_6/home:martin-juhl:branches:openSUSE:Tools.repo

or

CentOS6:

wget -O /etc/yum.repos.d/CentOS-CBS.repo http://download.opensuse.org/repositories/home:/martin-juhl:/branches:/openSUSE:/Tools/CentOS_6/home:martin-juhl:branches:openSUSE:Tools.repo

For dependencies we also need the EPEL repository:

rpm -ivh http://ftp.crc.dk/fedora-epel/6/i386/epel-release-6-5.noarch.rpm

yum install obs-web-httpd obs-server obs-worker obs-api mysql-server

chkconfig obsworker on
chkconfig iptables off
chkconfig mysqld on
service mysqld start

Configure:
/etc/sysconfig/obs-server

Set:
OBS_API_AUTOSETUP=”no”
to:
OBS_API_AUTOSETUP=”yes”

and:
OBS_VM_TYPE=”auto”
to:
OBS_VM_TYPE=”none”

/etc/init.d/obsapisetup start

mv /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.bak

chkconfig httpd on
chkconfig obssignd on

reboot

Now go the servers IP-adresse/Hostname for the web-interface…

Login: Admin

Pass: opensuse


apr 23 2012

CBS – Quick Update

Just a quick update on the CBS project:

Everything seems to be running now, except for the obssigner..

obssigner needs obs-signd installed, and right now I have some problems building some of the dependencies.. but we’re moving forward..

If you have any comments/bugs/experiences .. feel free to contact me on Twitter.


apr 21 2012

CBS – CentOS Build Service – Ready for Testing

Hi all

A quick howto, on installing CBS/OBS on CentOS 6/RHEL 6:

RHEL6:

wget -O /etc/yum.repos.d/RHEL-CBS.repo http://download.opensuse.org/repositories/home:/martin-juhl:/branches:/openSUSE:/Tools/RHEL_6/home:martin-juhl:branches:openSUSE:Tools.repo

or

CentOS6:

wget -O /etc/yum.repos.d/CentOS-CBS.repo http://download.opensuse.org/repositories/home:/martin-juhl:/branches:/openSUSE:/Tools/CentOS_6/home:martin-juhl:branches:openSUSE:Tools.repo

yum install obs-web-httpd obs-server obs-worker obs-api mysql-server

chkconfig obsworker on
chkconfig mysqld on
service mysqld start

/etc/sysconfig/obs-server

OBS_API_AUTOSETUP=”no”
OBS_API_AUTOSETUP=”yes”

OBS_VM_TYPE=”auto”
OBS_VM_TYPE=”none”

/etc/init.d/obsapisetup start

mv /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.bak

chkconfig httpd on

reboot

Now go the servers IP-adresse/Hostname for the web-interface…

Login: Admin

Pass: opensuse


apr 19 2012

New Project – OBS for CentOS/RHEL

Hi all

Time for YASP (Yet Another Sparetime Project)…

I have now for some time been using OBS (OpenSuSE Build Services) in my local home environment, as well as at several customers…

If you are using a packaged based distribution (RHEL/CentOS/SLES/OpenSuSE/Ubuntu/Debian and more) and in some way are creating your own packages, I will really suggest you to take a look into this project..

It’s basically a build server with a web interface. Packages are built in small environment and all dependencies are handled by the server (of caused speficied by the user)..

SuSE has been behind this project for some time now, and it’s generally working pretty good.. Either you can use SuSE’s own server to build your packages or get your own local installation..

This local installation is limited to a SuSE machine at the moment, and this is where I see a small problem..

In my work as a Consultant I see a lot of customers using Red Hat or CentOS, and some of these guys will not easily allow installation of a SuSE based distribution.

Therefore I have taken up the challenge to port the OBS server to CentOS/RHEL.

For now I have gotten the packages built (which wasn’t always easy), and have started modifying the startup scripts. In time I plan to start modifying the theme as well, and maybe come up with a name for this fork (Maybe CBS, CentOS Build Services)..

If anyone has an interest of following the progress, and maybe trying out the result, then to repository is available here and the source code here.