triowhich.blogg.se

How to setup gitlab on windows
How to setup gitlab on windows








how to setup gitlab on windows
  1. #HOW TO SETUP GITLAB ON WINDOWS INSTALL#
  2. #HOW TO SETUP GITLAB ON WINDOWS CODE#
  3. #HOW TO SETUP GITLAB ON WINDOWS PASSWORD#
  4. #HOW TO SETUP GITLAB ON WINDOWS ISO#

That said, I’ll be using Windows Server 2008 R2 since it was the first ISO file that came up on my computer when searching for ‘windows server’. It really doesn’t matter as long as you know your toolchain of choice will work on the operating system you’ve chosen. You could use something more server oriented like Windows Server 2016, or something desktop-oriented like Windows 10. Ultimately, this comes down to your personal preference. The first order of business is picking an operating system. Let’s get started with setting up our first job runner. If you’re already familiar with other Git hosting sites like GitHub or Bitbucket this should be pretty straightforward. Before we move on to setting up job runners, you’ll need to add an SSH key to your account, create a project and push to it. If you’re new to GitLab, take some time to familiarise yourself with the interface. That’s it for setting up GitLab – yeah, it’s literally just one command, it’ll even start automatically with your server assuming you didn’t remove the “-restart always” argument.

#HOW TO SETUP GITLAB ON WINDOWS PASSWORD#

Do this, then log in with the username ‘root’ and the password you just set. You should be greeted with the first time setup page where you can set the password of the ‘root’ user account. Open up your web browser and navigate to your GitLab server – in my case, koumakan.localdomain. Setting the root account password for the first time.

how to setup gitlab on windows

When the status of the container changes to ‘Up (healthy)’ it’s time to move on to the next step. You can periodically check its status by running ‘sudo docker ps’. volume /srv/gitlab/data:/var/opt/gitlab \įor convenience, I’m using the virtual host “koumakan.localdomain” which I’ve added to the hosts file on my local computer.ĭocker will now start to pull in the missing images before starting the GitLab container.

how to setup gitlab on windows

volume /srv/gitlab/logs:/var/log/gitlab \ Alternatively, make the needed adjustments to the ‘publish’ arguments in the next command – the port on the left of each argument is the host port while the right is the container port, so only change the left value. If your existing SSH server is currently occupying port 22, then now is a good time to switch to a non-standard port and let GitLab use port 22 instead. By default, GitLab will listen on ports 22, 80 and 443.

#HOW TO SETUP GITLAB ON WINDOWS INSTALL#

Sudo apt-get update & sudo apt-get install -y docker-ceīefore pulling in the GitLab image we need to check for port collisions. Sudo add-apt-repository "deb $(lsb_release -cs) stable" I’ll be using a virtual machine running Ubuntu Server 16.0.4 LTS for the GitLab host, which means the first step is to install Docker from the official repository – this will be a little different if you’re using another distribution. We’ll be using the provided Docker images which I’ve found to be the most straightforward method for installing but you’re free to compile from source or use the omnibus packages for your distribution if you prefer. If you can clone, commit and push a few files then you’re good to go.įirst things first, let’s get GitLab up and running. This is optional if you don’t plan on building any projects that run on Windows, or if you prefer to use cross-compiling.īasic Git knowledge. This is optional since you could use the GitLab server as a job runner, or skip it entirely if you don’t plan on building any projects that run on Linux. You’ll also need to be running a relatively modern (3.10 or higher) 64-bit kernel as per Docker requirements. GitLab recommends having at least 4GB RAM but the more the merrier.

how to setup gitlab on windows

Sounds like a lot of work but you’d be surprised at how simple the entire process is.īefore we start, make sure you have the following. This post will cover the initial installation of GitLab Community Edition, configuring Windows & Linux-based job runners and finally, using the built-in continuous integration feature of GitLab to automatically build your project.

#HOW TO SETUP GITLAB ON WINDOWS CODE#

Self-hosting your code & automated builds Continuous integration with GitLab in no time.










How to setup gitlab on windows