code stage - git&gitlab installation

In the code stage, we need to store different versions of code in a warehouse. Common version control tools are SVN or Git. Here we use Git as the version control tool and GitLab as the remote warehouse.

Git installation

https://git-scm.com/ (fool-proof installation)

GitLab installation

Prepare the server separately and install it using Docker

  • View the GitLab mirror
    docker search gitlab
  • Pull the GitLab image
    docker pull gitlab/gitlab-ce
  • Prepare docker-compose.yml file
    docker search gitlab
version: '3.1'
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
container_name: gitlab
restart: always
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://192.168.11.11:8929'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
ports:
- '8929:8929'
- '2224:2224'
volumes:
- './config:/etc/gitlab'
- './logs:/var/log/gitlab'
- './data:/var/opt/gitlab'
  • Start the container (it will take a while...)
    docker-compose up -d

GITLAB installation screenshot

Insert image description here
Insert image description here
Insert image description here

Insert image description here
Insert image description here

Insert image description here
Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/qq_37907454/article/details/132678364