Last active
February 17, 2016 10:35
-
-
Save pietsch/a74f810277a52f3a0fb9 to your computer and use it in GitHub Desktop.
Revisions
-
Christian Pietsch revised this gist
Aug 11, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Installing GitHub CI 5.0 on openSUSE 12.3 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. See also other unofficial GitLab installation guides: https://github.com/gitlabhq/gitlab-public-wiki/wiki/Unofficial-Installation-Guides ## 1. Packages / Dependencies -
Christian Pietsch revised this gist
Aug 11, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Installing GitHub CI 5.0 on openSUSE 12.3 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. -
Christian Pietsch revised this gist
Aug 8, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,8 @@ Installing the prerequisites is already a hassle, but I was able to map most of ```sh sudo ln -s /usr/bin/vi /usr/local/bin/editor ## give your favourite text editor a standard name sudo zypper install --type pattern devel_basis sudo zypper install wget curl 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 ``` -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -80,5 +80,5 @@ To actually build your projects, you need one or more runners. Looking at the of In my case, the `bundle install --deployment` step failed to install the `charlock_holmes` gem (version 0.6.9.4) due to messed up `lib` vs. `lib64` paths. My workaround was to install the current version instead: ```sh sed -i s/0.6.9.4/0.7.3/ /home/gitlab_ci_runner/gitlab-ci-runner/Gemfile* ``` -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -78,7 +78,7 @@ sudo editor /etc/nginx/vhosts.d/gitlab_ci.conf ## set your server_name To actually build your projects, you need one or more runners. Looking at the official instructions for Debian-based systems https://gitlab.com/gitlab-org/gitlab-ci-runner/blob/master/README.md you will notice that you need the same system packages as dependencies, so see 1. above on how to install these on openSUSE. In my case, the `bundle install --deployment` step failed to install the `charlock_holmes` gem (version 0.6.9.4) due to messed up `lib` vs. `lib64` paths. My workaround was to install the current version instead: ```sh sed -i "s/0.6.9.4/0.7.3'" /home/gitlab_ci_runner/gitlab-ci-runner/Gemfile* ``` -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -76,7 +76,7 @@ sudo editor /etc/nginx/vhosts.d/gitlab_ci.conf ## set your server_name # GitHub CI Runner on openSUSE 12.3 To actually build your projects, you need one or more runners. Looking at the official instructions for Debian-based systems https://gitlab.com/gitlab-org/gitlab-ci-runner/blob/master/README.md you will notice that you need the same system packages as dependencies, so see 1. above on how to install these on openSUSE. If the `bundle install --deployment` step fails to install the `charlock_holmes` gem (version 0.6.9.4) due to messed up `lib` vs. `lib64` paths, my workaround was to install the current version instead: ```sh -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # GitHub CI on openSUSE 12.3 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 @@ -70,3 +72,13 @@ sudo mkdir /etc/nginx/vhosts.d sudo cp /home/gitlab_ci/gitlab-ci/lib/support/nginx/gitlab_ci /etc/nginx/vhosts.d/gitlab_ci.conf sudo editor /etc/nginx/vhosts.d/gitlab_ci.conf ## set your server_name ``` # GitHub CI Runner on openSUSE 12.3 To actually build your projects, you need one or more runners. Here are the instructions for Debian-based systems: https://gitlab.com/gitlab-org/gitlab-ci-runner/blob/master/README.md Note that you need the same system packages as dependencies, so see 1. above on how to install these on openSUSE. If the `bundle install --deployment` step fails to install the `charlock_holmes` gem (version 0.6.9.4) due to messed up `lib` vs. `lib64` paths, my workaround was to install the current version instead: ```sh sed -i "s/0.6.9.4/0.7.3'" /home/gitlab_ci_runner/gitlab-ci-runner/Gemfile ``` -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ sudo rcredis start; sudo insserv redis ## 2. Ruby For Ruby, either follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#ruby … but then you will need this dirty workaround to make `rake` work later on: ```sh sudo ln -s /usr/local/bin/ruby /usr/bin/ruby -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,13 +20,13 @@ sudo rcredis start; sudo insserv redis ## 2. Ruby For Ruby, eihter follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#ruby … but then you will need this dirty workaround to make `rake` work later on: ```sh sudo ln -s /usr/local/bin/ruby /usr/bin/ruby ``` So if you can install Ruby 2.0 from a system package, I would recommend this instead: ```sh sudo zypper install ruby2.0 ruby2.0-dev -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,12 +21,18 @@ sudo rcredis start; sudo insserv redis ## 2. Ruby For Ruby, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#ruby But then you will need this dirty workaround to make `rake` work later on: ```sh sudo ln -s /usr/local/bin/ruby /usr/bin/ruby ``` The if you can install Ruby 2.0 from a system package, I would recommen this instead: ```sh sudo zypper install ruby2.0 ruby2.0-dev ``` ## 3. GitLab CI user: ```sh -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 21 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ sudo ln -s /usr/local/bin/ruby /usr/bin/ruby sudo useradd --create-home --comment 'GitLab CI' gitlab_ci ``` ## 3. Prepare the database Install your favourite MySQL implementation like this: @@ -44,4 +44,23 @@ 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 ## 7. Install Init Script ```sh sudo cp /home/gitlab_ci/gitlab-ci/lib/support/init.d/gitlab_ci /etc/init.d/gitlab_ci sudo insserv gitlab_ci sudo /etc/init.d/gitlab_ci start ``` ## 8. Nginx ```sh sudo zypper install nginx sudo mkdir /etc/nginx/vhosts.d sudo cp /home/gitlab_ci/gitlab-ci/lib/support/nginx/gitlab_ci /etc/nginx/vhosts.d/gitlab_ci.conf sudo editor /etc/nginx/vhosts.d/gitlab_ci.conf ## set your server_name ``` -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ sudo ln -s /usr/local/bin/ruby /usr/bin/ruby ## 3. GitLab CI user: ```sh sudo useradd --create-home --comment 'GitLab CI' gitlab_ci ``` ## Prepare the database -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,6 +22,10 @@ sudo rcredis start; sudo insserv redis For Ruby, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#ruby Here is a dirty workaround to make `rake` work later on: ```sh sudo ln -s /usr/local/bin/ruby /usr/bin/ruby ``` ## 3. GitLab CI user: -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Although this GNU/Linux distro is not supported, were are already running GitLab 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: ```sh 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 ``` -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,7 +25,7 @@ For Ruby, just follow the original instructions: http://doc.gitlab.com/ci/instal ## 3. GitLab CI user: ```sh sudo useradd --create-home --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci ``` ## Prepare the database -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ 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 -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,6 +36,7 @@ Install your favourite MySQL implementation like this: sudo zypper install mariadb libmysqlclient-devel sudo systemctl start mysql sudo insserv mysql mysql -r root ``` From here on, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#prepare-the-database -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,6 +34,8 @@ Install your favourite MySQL implementation like this: ```sh sudo zypper install mariadb libmysqlclient-devel sudo systemctl start mysql sudo insserv mysql ``` From here on, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#prepare-the-database -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ sudo useradd --system --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci Install your favourite MySQL implementation like this: ```sh sudo zypper install mariadb libmysqlclient-devel ``` From here on, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#prepare-the-database -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,9 +25,15 @@ For Ruby, just follow the original instructions: http://doc.gitlab.com/ci/instal ## 3. GitLab CI user: ```sh sudo useradd --system --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci ``` ## Prepare the database Install your favourite MySQL implementation like this: ```sh sudo zypper install mariadb ``` From here on, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#prepare-the-database -
Christian Pietsch revised this gist
Aug 7, 2014 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,4 +19,15 @@ 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: ```sh useradd --system --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci ``` ## Prepare the database From here on, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#prepare-the-database -
Christian Pietsch created this gist
Aug 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ 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: ```sh 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: ```sh 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 From here on, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#ruby