LogoopenSUSE Build Service > Projects
Sign Up | Log In

Preconfigured OpenSUSE Build Service 2.6 for "localhost"

OpenSUSE Build Service 2.6 preconfigured for a private local host.

* Added automatic SSL key generation.
* Added automatic Apache2 setup

The service will use the `hostname -f` as system name, so this command has to work correctly BEFORE installing the packages. Please make sure your DNS is working.

How to start / setup the OBS:

su root

Start the OBS:

rcobsrepserver start
rcobssrcserver start
rcobsscheduler start
rcobsdispatcher start
rcobspublisher start
rcobssignd start
rcobssigner start
rcobswarden start
rcobsworker start

Start the database:

rcmysql start

Setup the database:

mysql_secure_installation
    set root password: opensuse
    accept all defaults
mysql -u root -p
    create database api_production;
    create user 'obs'@'%' identified by 'obspassword';
    create user 'obs'@'localhost' identified by 'obspassword';  
    GRANT all privileges ON api_production.* TO 'obs'@'%', 'obs'@'localhost';
    FLUSH PRIVILEGES;
    quit

cd /srv/www/obs/api/
RAILS_ENV="production" rake db:setup
RAILS_ENV="production" rake writeconfiguration
chown -R wwwrun.www log tmp

Finally start the apache server:

rcmemcached start
rcapache2 start
rcobsapidelayed start



Normal startup sequence for the OBS is:

rcmemcached start
rcmysql start

rcobsrepserver start
rcobssrcserver start
rcobsscheduler start
rcobsdispatcher start
rcobspublisher start
rcobssignd start
rcobssigner start
rcobswarden start
rcobsworker start
rcobsservice start

rcapache2 start
rcobsapidelayed start


WARNING:

* The command 'hostname -f' has to work correctly before installing the packages.


KNOWN bugs / problems:

* passenger does not create a directory:
   mkdir -p /run/passenger

* Workers not starting:
    Change the OBS_VM_TYPE into "none" in /etc/sysconfig/obs-server

* Editing the repository to add a repo / path does not work
    Workaround: Use the meta tab to edit the project config directly.

    <path project="Packman:Essentials" repository="openSUSE_13.2"/>
    <path project="Packman:Extra" repository="openSUSE_13.2"/>
    <path project="Packman:Multimedia" repository="openSUSE_13.2"/>

Hints and tips:

* If you want to relink the apache2 directories,
  edit the file /etc/apache2/httpd.conf and
  add in the section <Directory /> the statement "Options FollowSymLinks"


To do:
* Integrate the database setup.

Comments for home:Ximi1970:OBS:Server:2.6 (0)