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.

Revisions

  1. Christian Pietsch revised this gist Aug 11, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original 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.
    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

  2. Christian Pietsch revised this gist Aug 11, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # GitHub CI on openSUSE 12.3
    # 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.

  3. Christian Pietsch revised this gist Aug 8, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.md
    Original 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 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 --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
    ```

  4. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original 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*
    sed -i s/0.6.9.4/0.7.3/ /home/gitlab_ci_runner/gitlab-ci-runner/Gemfile*
    ```
  5. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original 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.

    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:
    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
    sed -i "s/0.6.9.4/0.7.3'" /home/gitlab_ci_runner/gitlab-ci-runner/Gemfile*
    ```
  6. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original 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. 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.
    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
  7. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions gistfile1.md
    Original 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
    ```
  8. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ sudo rcredis start; sudo insserv redis

    ## 2. Ruby

    For Ruby, eihter follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#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
  9. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -20,13 +20,13 @@ 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:
    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
    ```

    The if you can install Ruby 2.0 from a system package, I would recommen this instead:
    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
  10. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 8 additions and 2 deletions.
    10 changes: 8 additions & 2 deletions gistfile1.md
    Original 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

    Here is a dirty workaround to make `rake` work later on:
    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
  11. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 21 additions and 2 deletions.
    23 changes: 21 additions & 2 deletions gistfile1.md
    Original 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
    ```

    ## Prepare the database
    ## 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
    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
    ```
  12. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original 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 --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci
    sudo useradd --create-home --comment 'GitLab CI' gitlab_ci
    ```

    ## Prepare the database
  13. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gistfile1.md
    Original 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:

  14. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original 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
    ```
  15. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original 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 --system --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci
    sudo useradd --create-home --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci
    ```

    ## Prepare the database
  16. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original 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 -r root
    mysql -u root
    ```

    From here on, just follow the original instructions: http://doc.gitlab.com/ci/install/installation.html#prepare-the-database
  17. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original 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
  18. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original 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
  19. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original 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
    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
  20. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion gistfile1.md
    Original 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
    useradd --system --shell /sbin/nologin --comment 'GitLab CI' gitlab_ci
    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
  21. Christian Pietsch revised this gist Aug 7, 2014. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -19,4 +19,15 @@ 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
    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
  22. Christian Pietsch created this gist Aug 7, 2014.
    22 changes: 22 additions & 0 deletions gistfile1.md
    Original 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