Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to dock Git Server

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

In this issue, the editor will bring you about how to dock Git Server. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Private cloud

GitLab is an open source project for warehouse management systems. Private cloud services use more self-built Git services.

Docking GitLab

Install Gitlab through the application market

Install the GitLab application

Since GitLab relies on Mysql and Redis, install the Mysql and Redis applications first.

Install Mysql

Install Redis

Install the default administrative account of GitLab: admin@example.com/Administrator

Configure the ssh protocol port for Gitlab

Differences between http (s) and ssh:

Http (s) the former can clone the project on git at will, no matter whose project it belongs to; the push project needs to verify the user name and password.

Ssh, clone project you must be the owner or administrator of the project, and you need to add ssh key;push without verifying the username and password. If key sets a password, you need a password (usually not necessary). It is recommended to use SSH.

After the installation is complete, add SSH port 22 (stream) to the advanced options of GitLab application, enable external access, and restart the application.

Permission configuration

Management node:

Docker pull hub.goodrain.com/dc-deploy/console:2017.03# edits the docker-compose.yaml file, about 45 lines vi / etc/goodrain/docker-compose.yam modifies image: hub.goodrain.com/dc-deploy/console:2017.02 to image: hub.goodrain.com/dc-deploy/console:2017.03# and modifies dc-compose stop consoleccleardc-compose up-d

Compute nodes:

# switch to cd / grdata/tenant/73e7e82d5558407696601b8461bcb4f7/service# under the tenant service directory, indicating that 73e7e82d5558407696601b8461bcb4f7 is tenant id. Default Tab key is fine.

View the source code on the gitlab App Overview page and search for the corresponding value of service_id (e.g. abc)

After cd goes to this directory (cd abc), you can see the data directory by ll.

# current full path pwd/grdata/tenant/73e7e82d5558407696601b8461bcb4f7 (tab completion) / service/abc (view source code) / chmod 755 data# View data directory permissions ll-a drwxr_xr_x interfacing GitLab

Visit GitLab.

Create a new project warehouse

Create a new index.html file in the warehouse and edit it.

Manage node testing

# generate ssh-keyssh-keygen-t rsa-f / etc/goodrain/ssh/goodrain-builder# configuration ssh config file cat

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report