Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Best way to install GitLab on FreeNAS

r51

Neophyte
Joined
Oct 16, 2019
Messages
4
Hello,
I need to install GitLab to a production server. Unfortunately, GitLab plugin is not available now (probably it will be added in 11.3). What is the best solution to run GitLab on FreeNAS?

1. Wait for a new official plugin.
2. Try to re-enable the last available plugin (with gitlab-ce-12.0.6).
3. Install GitLab on Linux in bhyve. Omnibus install package is officially recommended way to install it (Omnibus package is not available on FreeBSD).
4. Install GitLab to a jail by yourself.

Is there anyone using GitLab on FreeNAS in production?

I am not sure if it is possible to smoothly import GitLab backup (repos + database) to GitLab installed as FreeNAS plugin if I have clean install of it.

Thank you.
 

blanchet

Member
Joined
Apr 17, 2018
Messages
235
For production, there is only one viable solution.

3. Install GitLab on Linux in bhyve. Omnibus install package is the officially recommended way to install it

Remember that GitLab is updated every 22th of the month.
 
Last edited:
  • Like
Reactions: r51

r51

Neophyte
Joined
Oct 16, 2019
Messages
4
Thank you for your answer!

Finally, I used your suggested solution. I have installed CentOS 7 in bhyve VM with 8 GB RAM and 4 vCPU. I use two approaches to backup:
1. Integrated GitLab backup (command: gitlab-backup create) and upload the TAR file to a SMB share.
2. Shutdown the VM (initiated by cron in CentOS). Create a periodic snapshot of ZVOL. Automatic VM start via cron in FreeNAS.
 

seanm

Senior Member
Joined
Jun 11, 2018
Messages
468
For production, there is only one viable solution.

3. Install GitLab on Linux in bhyve. Omnibus install package is officially recommended way to install it
Not disputing you, but why is this the case?
 

blanchet

Member
Joined
Apr 17, 2018
Messages
235
Not disputing you, but why is this the case?

Since an installation from source is a lot of work and error prone we strongly recommend the fast and reliable Omnibus package installation (deb/rpm).
The omnibus package is a full-stack platform-specific downloadable package for GitLab. Without this all-in-one package, GitLab would be difficult to install and very painful to maintain because
  • GitLab never backports security patches: you always have to upgrade to the latest version of GitLab to get them.
  • GitLab follows a very fast release cadence (once per month)
  • GitLab has a lot of dependencies, with specific version requirements: ruby, rails, PostgreSQL, git, nginx, Redis, etc.
 
Top