SWITCH | SWITCHdrive | SWITCHengines |

Hosting Git repositories


We have received some requests about the possibility of hosting source repositories, in particular Git repositories, on SWITCHengines. There are a few options that have been tested. I’ll describe them in this topic. Feel free to add your own suggestions and feedback in the comments!


c4science.ch is a project to provide tools for Code Co-Creatation and Curation. It was built and is operated by the SCITAS team at EPFL as part of the eSCT project, which is funded under swissuniversities’ P-2 cooperation program.

C4Science is based on the Phabricator platform. It supports Git, but also Subversion (svn) and Mercurial (Hg) repositories. In addition, it supports Continuous Integration (CI), code review, project management and Wikis.

GitLab options

GitLab is another open-source system that has become quite popular as a self-hostable alternative to GitHub. It also includes features for code review, CI and Wikis. It generally has fewer features and options than Phabricator; on the other hand it’s quite intuitive to use.

gitlab.switch.ch (not a service!)

We have set this up for a collaboration project, and anyone with a SWITCHaai account can use it—just sign in via the “Shibboleth” option. But note that this is not a “service”… this means that there is no formal support (although we will look into requests sent to engines-support on a best-efforts basis), it can go away at any time, we upgrade the software without notice etc. The project in question is still going on until the end of 2017, so the immediate probability of it going away is low, but please consider this.

gitlab.YOURDOMAIN (as a service)

We can set up an instance of GitLab for your organization (with Shibboleth/SWITCHaai support, if desired) on SWITCHengines and keep it running, patched and backed up. Pricing is the normal cost of a suitable SWITCHengines VM plus storage, plus 2–3 days worth of consulting fees per year for setup and maintenance. Please contact engines-support if you are interested in this.

Install your own GitLab VM

Of course you can also just start a SWITCHengines VM and install GitLab on your own. We recommend GitLab’s “Omnibus” package, which powers (in the Community Edition) all GitLab instances mentioned above. We have used it successfully on both Ubuntu 14.04 and Ubuntu 16.04.