fabric8 icon indicating copy to clipboard operation
fabric8 copied to clipboard

Support gitlab as an OOTB git hosting service

Open jstrachan opened this issue 8 years ago • 25 comments

jstrachan avatar Nov 04 '15 19:11 jstrachan

This would be awesome!

The official Docker image is available on https://hub.docker.com/r/gitlab/gitlab-ce/

Please let me know how we can help.

dosire avatar Nov 04 '15 23:11 dosire

I've raised this issue to try make the gitlab docker image more configurable via environment variables: https://gitlab.com/gitlab-org/gitlab-ce/issues/3519

which will make it a bit easier to reuse from fabric8

jstrachan avatar Nov 17 '15 09:11 jstrachan

Thanks, I responded in that issue.

dosire avatar Nov 17 '15 16:11 dosire

I tested the merge request https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/575/diffs and it is working well for example to set smtp server settings.

This is what I did: Adding an env GITLAB_OMNIBUS_CONFIG in my gitlab OpenShift template and the corresponding parameter.

Then when instantiating it, I set the following value for the parameter:

 gitlab_rails['smtp_enable'] = true ; gitlab_rails['smtp_address'] = "smtp.gmail.com";  gitlab_rails['smtp_port'] = 587 ; gitlab_rails['smtp_user_name'] = "[email protected]";  gitlab_rails['smtp_password'] = "mypassword";  gitlab_rails['smtp_domain'] = "smtp.gmail.com" ; gitlab_rails['smtp_authentication'] = "login" ; gitlab_rails['smtp_enable_starttls_auto'] = true  ;gitlab_rails['smtp_tls'] = false;  gitlab_rails['smtp_openssl_verify_mode'] = 'peer'

And it works ok.

Other major issue now, is OpenShift persistent volume when using NFS as a backend: User and right permissions are nobody:nobody / 777 which is not valid for gitlab. We need a way to work with it.

akram avatar Feb 01 '16 20:02 akram

@tmaczukin any idea's how to help jstrachan and about the permission issue?

dosire avatar Feb 03 '16 05:02 dosire

@tmaczukin I think the best person for this is @twk3. DJ, can you please look into this and see if you can help @jstrachan?

eliranGL avatar May 31 '16 14:05 eliranGL

I ran into the same issue. Right now we suggest setting not_root_squash for your nfs mounts. http://docs.gitlab.com/ce/administration/high_availability/nfs.html#required-nfs-server-features

twk3 avatar May 31 '16 19:05 twk3

@jstrachan please let me know if you need any further help on this.

eliranGL avatar Jun 02 '16 10:06 eliranGL

@jstrachan any updates on this? can we help somehow?

eliranGL avatar Jul 18 '16 12:07 eliranGL

In GitLab 8.12, which will come out later this month, we've made some changes that make using root_squash possible on the storage directories.

It doesn't work if you mount all of /var/opt/gitlab, but you can mount the repos, uploads, builds, and shared paths separately, or configure gitlab to look for them on a seperate mounted location (outside of /var/opt/gitlab), then GitLab will still work with root_squash enabled on those mounts. https://docs.gitlab.com/omnibus/settings/configuration.html#disable-storage-directories-management

twk3 avatar Sep 12 '16 17:09 twk3

@jstrachan have you had a chance to review the changes @twk3 detailed? can we help somehow?

eliranGL avatar Oct 27 '16 13:10 eliranGL

Update from @jstrachan: we're waiting on some upstream work on keycloak (the SSO provider); once that's sorted we should be able to move to keycloak as the SSO provider for fabric8 for the fabric8 console, for gitlab, jenkins and nexus. So it's not a gitlab thing we're blocked on really; so far that's all working fine.

eliranGL avatar Dec 18 '16 13:12 eliranGL

@eliranGL , @jstrachan Is there anything to help with?

nick4fake avatar May 18 '17 18:05 nick4fake

@jstrachan any updates on the keycloack upstream?

eliranGL avatar May 21 '17 08:05 eliranGL

So we have a KeyCloak now, so would love to try update our gitlab image to use it for SSO.

Instructions to install it here until we get the release out https://github.com/fabric8io/fabric8-platform/blob/master/README.md#v-4x-pre-release-development

jstrachan avatar May 21 '17 08:05 jstrachan

@eliranGL @nick4fake either of you ever seen a way to configure gitlab to use a KeyCloak server for its authentication?

jstrachan avatar May 24 '17 11:05 jstrachan

@jstrachan Through SMAL it may be possible. Have a look at these: https://gitlab.com/gitlab-org/gitlab-ce/issues/23255 https://gitlab.com/gitlab-org/gitlab-ce/issues/15172

eliranGL avatar May 24 '17 11:05 eliranGL

@jstrachan any updates on this?

eliranGL avatar Jun 07 '17 15:06 eliranGL

@eliranGL we've not yet managed to find a way to run gitlab reliably on OpenShfit with out the 'RunAsAnyUser' feature being enabled nor get it working with KC; so we're a bit stuck until we figure that out. I hope to get more time in a couple of weeks to try again to figure out how to do it

jstrachan avatar Jun 07 '17 15:06 jstrachan

@jstrachan we're working on splitting our container up which will help resolve that. https://gitlab.com/charts/charts.gitlab.io/issues/14

eliranGL avatar Jun 08 '17 09:06 eliranGL

FWIW I started on a gitlab app for the new look fabric8-platform but there's still some work for me to do there. https://github.com/rawlingsj/fabric8-platform/tree/gitlab/apps/gitlab/src/main/fabric8

The aim is to avoid ANY manual config changes which we can hopefully automate with the help of fabric8 update-controller. Once https://gitlab.com/charts/charts.gitlab.io/issues/14 is done I can update my branch and get gitlab included as a fabric8 app.

rawlingsj avatar Jun 08 '17 09:06 rawlingsj

Is/How is authentification and authorizaton integrated?

cforce avatar Jul 27 '17 12:07 cforce

fabric8 4.x comes with an integrated KeyCloak server for SSO - though we've not been able to integrate it with gitlab yet

jstrachan avatar Jul 27 '17 12:07 jstrachan

Hey guys, any update on this? Really keen to use our existing gitlab installation with this incredible project!

wandergeek avatar May 30 '18 11:05 wandergeek

Our cloud native chart (microservices) is now available: https://docs.gitlab.com/ee/install/kubernetes/gitlab_chart.html can we see if we can make this happen?

eliranGL avatar Oct 02 '18 10:10 eliranGL