Home >Development Tools >git >Can gitlab be built with windows8?
Github is an essential version control tool for programmers for daily development, but in addition, there is another tool that is equally powerful and worth knowing, and that is GitLab. Some programmers are not familiar with GitLab, don't know how to use GitLab, let alone whether GitLab can be built on a Windows 8 system. This article will introduce you to GitLab and how to build GitLab on Windows 8 system.
1. What is GitLab
GitLab is an open source code hosting management system, similar to GitHub, but it supports local deployment. It can run on your own server or Can be deployed on cloud servers. It is a Git-based version control tool developed using the Ruby on Rails framework. By using GitLab, team members can get better code management and collaborative working experience, and improve development efficiency.
2. Can GitLab be built on Windows 8 system?
GitLab officially provides an installation document. It only gives the steps for installation on the Linux operating system, and does not provide instructions on how to install it on the Linux operating system. Installation tutorial on Windows operating systems. But we can run GitLab on Windows by installing GitLab Runner, so that we can use GitLab on Windows 8 systems. GitLab Runner is a universal and extensible implementation tool that supports multiple platforms. It can be connected with GitLab CI/CD to provide GitLab with automated integration tasks for building, testing, and deployment.
3. How to build GitLab on Windows 8 system
Download and install GitLab Runner from the official website. After the installation is complete, open cmd. Run the following command:
gitlab-runner install gitlab-runner start
Change the suffix of gitlab.rb.sample in the GitLab installation path to rb to use. Make the following modifications in the configuration file:
nginx['enable'] = false web_server['external_users'] = ['nginx'] registry_external_url 'https: //xxx.xxx.xxx.xxx :5005' (主机IP) gitlab_rails['registry_enabled'] = true gitlab_rails['registry_host'] = "https://xxx.xxx.xxx.xxx:5005"
Enter GitLab, click "Settings", open the "CI/CD" tab, and click "Runners".
In the "Runners" page, select the "Expand" option, you will see the "Set up a specific Runner manually" sub-option in the "Runners" page, click it.
On the "Runners" settings page, select "Windows" and copy the registration token, close the window.
Run the following command in cmd:
gitlab-runner register --url https://192.168.27.159 --registration-token 5fjq1eQApWzoKz-2QyFh --executor shell --description "runner for Windows8" --tag-list "windows,runner,shell" --run-untagged true --locked=false --access-level not_protected
Among them, the url after "-url" is the GitLab server IP address, and the token after "-registration-token" is the second step Copied registration token.
After running the above code, GitLab Runner will run as a Windows service.
You need to run the following code:
git clone https://192.168.27.159/user/repository.git cd repository echo "Hello, GitLab!" > README.md git add README.md git commit -m 'add README' git push -u origin master
If there is no problem, congratulations, you have successfully installed GitLab and installed it on Windows 8 system run on.
Conclusion:
GitLab is a very powerful version control tool that can help team members work better together and improve efficiency. To build GitLab on Windows 8 system, you need to install GitLab Runner first, then modify the GitLab configuration file, and finally configure GitLab Runner. After successful installation, you can use it according to your own needs.
The above is the detailed content of Can gitlab be built with windows8?. For more information, please follow other related articles on the PHP Chinese website!