Home > OS >  Without public IP deployment GitLab remote development!
Without public IP deployment GitLab remote development!

Time:04-16

Learn common need friends and classmates lu code, an idea came to him with GitLab to work together, I just installed the pagoda panel on the server, but the panel's own GitLab often appear all sorts of mistakes, so consider using Docker to deploy, and then realize remote development through Intranet through peanut shell,

The following steps together,

First installation pagoda panel (refer to the tutorial: https://www.bt.cn/bbs/thread-19376-1-1.html) go into here, panel, after the success of the installation in the app store of panel installation Docker manager;


Then get GitLab mirror

Gitlab/gitlab - ce: latest


Mirror is large, need to wait patiently, after acquiring a new container, choose just get GitLab mirror image, and create 8099 port mapping, the container port and server port is fill in 8099;


After the success of the create, SSH into container terminal;


Edit GitLab configuration file

Vi/etc/gitlab/gitlab rb

In the first line to join the following

External_url 'http://192.168.0.97:8099'


: wq save after restart service effect just modify

Gitlab - CTL reconfigure

Gitlab - CTL restart

Then, in the panel search peanut shell in the app store and install




After the success of the installation, open the plug-in, peanut shell login account registered good peanut shells;

Select "senior management" into the peanut shells mapping configuration management background (red arrow as shown in figure choose to fill in content, the blue arrow to fill in according to actual condition, content of the green arrow can fill in, will not affect the use);


Configuration is complete, click "ok" to save the peanut shell will automatically generate an access address, you can through the public network access services;

Public environment into the page will be prompted to reset the password, to reset the password after using the new password login, can be friends and classmates lu code to write articles, easily open GitLab trip!

Peanut shells may not have a public IP access to all kinds of network structures, also can quickly realize the network service, do the experiments at ordinary times, never put off till tomorrow what you can put the debugging and so on are very convenient, also have a free version of the service, to the student group is more friendly, want to use high level service can apply for a student "program", students enjoy exclusive privilege,

CodePudding user response:

This share lu code? Can really play
  • Related