Skip to content

Instantly share code, notes, and snippets.

@pietsch
Last active February 17, 2016 10:35
Show Gist options
  • Select an option

  • Save pietsch/a74f810277a52f3a0fb9 to your computer and use it in GitHub Desktop.

Select an option

Save pietsch/a74f810277a52f3a0fb9 to your computer and use it in GitHub Desktop.
How to install GitLab CI on openSUSE 12.3 GNU/Linux

Although this GNU/Linux distro is not supported, were are already running GitLab on an openSUSE server, so let's see if we can set up a GitLab CI (Continuous Integration) server on openSUSE, too. These notes are basically a translation of http://doc.gitlab.com/ci/install/installation.html to SuSE.

1. Packages / Dependencies

Installing the prerequisites is already a hassle, but I was able to map most of the Debian package names to SuSE's naming scheme using distromatch. So here we go:

sudo ln -s /usr/bin/vi /usr/local/bin/editor  ## give your favourite text editor a standard name
sudo zypper install wget curl gcc checkinstall libxml2-devel libxslt-devel libcurl-devel readline-devel glibc-devel libopenssl-devel libmysqlcppconn-devel make libz1 openssh git-core libyaml-devel postfix postgresql-devel libicu-devel
sudo zypper install redis

To get redis up, some manual work is needed:

sudo cp /etc/redis/default.conf.example /etc/redis/default.conf
sudo chown redis:redis /etc/redis/default.conf
sudo rcredis start; sudo insserv redis

2. Ruby

For Ruby, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#ruby

3. GitLab CI user:

sudo useradd --create-home --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci

Prepare the database

Install your favourite MySQL implementation like this:

sudo zypper install mariadb libmysqlclient-devel
sudo systemctl start mysql
sudo insserv mysql
mysql -u root

From here on, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#prepare-the-database

@vpeil
Copy link

vpeil commented Aug 7, 2014

Nice job! Thanks for the notes.

@danogwok
Copy link

danogwok commented Sep 1, 2015

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment