GitLab in the OpenShift all-in-one
This issue is for the task of actually having GitLab come within the All-in-One vm
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: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1251 -
remove the need for no_root_squash in the docker image: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1324
- Need to add KILL back to the security contexts
- done upstream here: https://github.com/openshift/origin/commit/bc1ddaa85a591d2c5d1c335f17f437be8a3d2841
- for the all-in-one I apply this to get it working:
oc patch scc/anyuid --patch '{"requiredDropCapabilities":["MKNOD","SYS_CHROOT"]}'
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.