Category Archives: gitlab

Gitlab CI runner installation

The instructions to install GitLab CI runner are adapted to Ubuntu 14.04 to connect to GitLab CI and run jobs when a commit is pushed to a branch. A runner token must be obtained from GitLab CI, at the http://cong.dachary.org:8080/projects/1/runners … Continue reading

Posted in gitlab | 1 Comment

Mirror github pull requests locally

Each GitHub pull request is associated with a reference in the target repository. For instance the commit sent to pull request 3948 is the reference refs/pull/3948/head. If GitHub successfully merges the pull request in the target branch, another reference is … Continue reading

Posted in git, gitlab | Leave a comment

jerasure.org installation notes

The jerasure.org is setup to host the upstream repositories for the GF-complete and jerasure libraries. Contributors may sign-up or re-use their existing GitHub account. A companion continous integration server runs make check on each merge request.

Posted in gitlab, jerasure | Leave a comment

Customizing the gitlab home page

The customization of the Gitlab home page is a proprietary extension that is not available in the Free Software version. When running Gitlab from docker containers, the home page template needs to be moved to a file that won’t go … Continue reading

Posted in gitlab | 1 Comment

Gitlab CI runner installation

This content is obsolete The instructions to install GitLab CI runner are adapted to Ubuntu 14.04 to connect to GitLab CI and run jobs when a commit is pushed to a branch. The recommended packages are installed except postfix and … Continue reading

Posted in gitlab | Leave a comment

Gitlab CI installation

Assuming a GitLab container has been installed via Docker, a GitLab CI can be installed and associated with it. It needs a separate database server: sudo mkdir -p /opt/mysql-ci/data docker run –name=mysql-ci -d -e ‘DB_NAME=gitlab_ci_production’ \ -e ‘DB_USER=gitlab_ci’ \ -e … Continue reading

Posted in docker, gitlab | Leave a comment

Copy a github pull request to gitlab

A mirror of a github repository is setup and contains two remotes: gitlab git@workbench.dachary.org:tests/testrepo.git (push) origin https://github.com/loic-bot/testrepo (push) The github2gitlab command of gh (run from ~gitmirrors/repositories/Tests/testrepo) creates a merge request in gitlab by copying the designated pull request from github: … Continue reading

Posted in gitlab | Leave a comment

Ceph read-only mirror on gitlab

The gitlab-mirrors scripts are installed to setup a a read-only Ceph mirror, updated hourly. It is used for permalinks such as src/osd/ClassHandler.cc#L170.

Posted in ceph, gitlab | Leave a comment

Gitlab workbench

Gitlab is installed on http://workbench.dachary.org using docker images. redis is installed first, as an independant container: docker pull sameersbn/redis:latest docker run –name=redis -d sameersbn/redis:latest then MySQL docker pull sameersbn/mysql:latest docker run –name=mysql -d \ -e ‘DB_NAME=gitlabhq_production’ \ -e ‘DB_USER=gitlab’ \ … Continue reading

Posted in gitlab | Leave a comment