In my study, I often encountered the need to hand out codes with my classmates and friends, so I thought of using GitLab for collaborative work. Pagoda panel was installed on my server, but various errors often appeared in the GitLab of panel, so I considered deploying Docker, and then realized remote development through peanut shell Intranet penetration.

Let’s take a look at the steps.

First install the Pagoda panel (see tutorial: www.bt.cn/bbs/thread-…) After the panel is successfully installed, install the Docker manager in the software store of the panel.

Then get the GitLab image

gitlab/gitlab-ce:latest

The image is large, so you need to wait patiently. After obtaining it, create a new container, select the GitLab image just obtained, and create a mapping of port 8099. Fill in 8099 for container port and server port.

After the creation, access the SSH terminal of the container.

Edit the GitLab configuration file

vi /etc/gitlab/gitlab.rb

Add the following in the first line

External_url ‘http://192.168.0.97:8099’

:wq Save the changes and exit. Restart the service to take effect

gitlab-ctl reconfigure

gitlab-ctl restart

Next, search for peanut shells in the panel’s software store and install them

After the installation is successful, open the peanut shell plug-in and log in to the registered peanut shell account.

Select “Advanced Management” to enter the peanut shell management background for mapping configuration (fill in the red arrow, fill in the blue arrow according to the actual situation, and fill in the green arrow at will without affecting the use).

Click “OK” to save the configuration. The peanut shell will automatically generate an access address and you can access the service through the public network.

The public network environment will prompt you to reset the password when entering the page. After you reset the password, you can log in with the new password. Then you can write articles with your classmates and friends and easily open the GitLab journey!

Peanut shell can not have public IP can also quickly realize the external network access to a variety of Intranet services, usually do experiments, debugging and so on is very convenient. In addition, there is a free version of the service, which is more friendly to students. If you want to use the high-level service, you can apply for the “Student plan” and enjoy the exclusive discount for students.