Skip to content

GitLab in the OpenShift all-in-one

This issue is for the task of actually having GitLab come within the All-in-One vm

cc\ @TheSteve0 @eliran.mesika

The below steps are how I currently add it in.

How to get it up and running in the current all-in-one

  • I'm running the all-in-one with 4GB of ram assigned in the vagrant file.
  • for storage I am using the existing exports, but we probably need to add more for GitLab
  • the gitlab and redis docker images need their nfs storage to have no_root_squash set in /etc/exports or they throw errors
    • TODOS
    • add in workaround for setting no_root_squash in the dev all-in-one: #1251 (closed)
    • remove the need for no_root_squash in the docker image: #1324 (closed)
  • Need to add KILL back to the security contexts

Then I create a new project and do an oc create -f on the template file: https://gitlab.com/gitlab-org/omnibus-gitlab/raw/openshift-template/docker/openshift-template.json

At that point I navigate to the UI and add gitlab to my project. Redis and gitlab have to get synced down from docker hub. This can take a long time and usually results in container restarts for the gitlab-ce app.