Is there a way to install GitLab on Windows 10 in an offline environment? (with a CD or DVD)

Is there a way to install GitLab on Windows 10 in an offline environment? (with a CD or DVD)

Hi,

Gitlab can only be installed and run under Linux.

Theoretically, if WSL is possible under Windows 10, see: Install WSL | Microsoft Docs

then by default it installs Ubuntu. Assuming that will be one of the supported versions like Ubuntu 18.04 or 20.04, then you can attempt to install Gitlab within WSL. Alternatively, you could run VirtualBox or VMware Workstation under Windows, and create a VM with eg: Debian/Ubuntu and install Gitlab in there.

I would however recommend to set it up on a proper Linux server, even if it is a VPS/VM rather than WSL under Windows. For example, under KVM, VirtualBox, VMware, XenServer.

2 Likes

I believe there are a few guides around the net on installing GitLab on windows. I have no idea if there are for windows 10 or how easy it is, but…

As the official guides for installing GitLab (and I guess the unofficial ones describing how to do it on windows) are for online environments (and on Linux), what you’re asking about also deviates there. It might be possible to put everything needed on a CD/DVD, but you’re making a hard task even harder.

I would check the requirements to see if:

  1. it is possible to use a Linux server
  2. It’s possible to install GitLab online, and perhaps certify the server afterwards (depends heavily on why offline is a requirement)
1 Like

Thanks… Yeah the machine will never be online.

By Linux Server, would a RedHat 7 machine do? And is there an offline option there?

Offline would mean download the rpm/deb package and install it on the appropriate Linux distribution. Depending on whether you want gitlab-ce or gitlab-ee, then you can download from one of the appropriate links:

Gitlab-ce: gitlab/gitlab-ce - Packages · packages.gitlab.com
Gitlab-ee: gitlab/gitlab-ee - Packages · packages.gitlab.com

ce is the community edition, ee is enterprise edition which you can also use free with basic functionality, but it offers the ability later to install a license if you want. The gitlab-ce one doesn’t allow you to upgrade it with a license, but it can be upgraded later to gitlab-ee if necessary. Copy the downloaded rpm/deb package to a pendrive or whatever, and you can do the installation without the internet.

As I write this, both those links show internal server error, but I expect Gitlab will fix it sometime soon so that it will be accessible again.

Redhat 7 is a bit old, but if the server is never going online, I guess that’s less of a problem.
The main problem you will get there is whether the GitLab version you want (depending on whether you can trust your users, that might include at some unspecified time in the future) can be installed there. As far as I can see Redhat 7 is not among the distributions for which official packages exist, but I switched to Debian in the last millenium (I did run Redhat before, but I guess my experiences from the 90’s are pretty worthless), so I really don’t know what is possible.

There are el7 packages which will cover RHEL7. As @grove mentioned, RHEL7 is a bit old, but still supported and doesn’t go end-of-life until June 30 2024. But would be better to use RHEL8 since it’s supported until May 2029.