Ubuntu源码安装gitlab13.7集群多前端《二》

Ubuntu源码安装gitlab13.7《一》

gitaly需要调整的服务

  1. redis socket->ip

    复制代码
    bind ....* # 0.0.0.0
  2. pg vim /etc/postgresql/14/main/pg_hba.conf

    复制代码
    host    all             all             ..../32         md5
  3. gitaly vim /home/git/gitaly/config.toml

    复制代码
    bin_dir = "/home/git/gitaly"
    internal_socket_dir = "/home/git/gitaly/internal_sockets"
    socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
    
    listen_addr = '0.0.0.0:8075'
    # Optional: export metrics via Prometheus
    # prometheus_listen_addr = "0.0.0.0:9236"
    #[prometheus]
    #grpc_latency_buckets = [0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0]
    #[logging]
    #level = "warn"
    #[auth]
    #token = '******'
    
    [gitaly-ruby]
    dir = "/home/git/gitaly/ruby"
    [gitlab]
    url = "http://****.com"
    [gitlab-shell]
    dir = "/home/git/gitlab-shell"
    [logging]
    dir = "/home/git/gitlab/log"
    [[storage]]
    name = "default"
    path = "/home/git/repositories"

gitlab需要调整的服务

  1. gitlab gitlab.yml database.yml resque.yml

    复制代码
      # Gitaly settings
      gitaly:
        # Path to the directory containing Gitaly client executables.
        client_path: /home/git/gitaly
        # Default Gitaly authentication token. Can be overridden per storage. Can
        # be left blank when Gitaly is running locally on a Unix socket, which
        # is the normal way to deploy Gitaly.
        token: '******' #gitaly 配置的token
      #
      # 4. Advanced settings
      # ==========================
    
      ## Repositories settings
      repositories:
        # Paths where repositories can be stored. Give the canonicalized absolute pathname.
        # IMPORTANT: None of the path components may be symlink, because
        # gitlab-shell invokes Dir.pwd inside the repository path and that results
        # real path not the symlink.
        storages: # You must have at least a `default` storage path.
          default:
            path: /home/git/repositories/
            gitaly_address: tcp://*.*.*.*:8075
            #gitaly_address: unix:/home/git/gitlab/tmp/sockets/private/gitaly.socket # TCP connections are supported too (e.g. tcp://host:port). TLS connections are also supported using the system certificate pool (eg: tls://host:port).
            # gitaly_token: 'special token' # Optional: override global gitaly.token for this storage.
    
    url: redis://*.*.*.*:6379
    #url: unix:/var/run/redis/redis.sock
  2. gitlab obs https://gitlab.cn/docs/16.8/charts/installation/migration/minio.html

    复制代码
    uploads:
      enabled: true
      object_store:
      enabled: true
      remote_directory: gitlab-uploads
      proxy_download: true
      connection:
        provider: AWS
        region: <S3 region>
        aws_access_key_id: "<access key>"
        aws_secret_access_key: "<secret access key>"
        host: <Minio host>
        endpoint: <Minio endpoint>
        path_style: true
  3. 依赖的服务 gitlab-shell && gitlab-workhorse

相关推荐
菜鸡000112 小时前
把一个项目传到 GitLab 的某个群组
大数据·elasticsearch·gitlab
AlbertS1 天前
记一次推送lfs失败不能迁移git仓库到新的gitlab的问题
git·ai·gitlab·lfs·rejected
日更嵌入式的打工仔1 天前
Windows 下 GitLab 完整使用指南
windows·gitlab
会飞的大可1 天前
Jenkins vs GitLab CI/CD:2026 企业级 CI/CD 工具深度选型评测
ci/cd·gitlab·jenkins
庭風2 天前
让 AI 从需求直接走到 MR:我开源了一个面向 GitLab 的工作流 MCP
gitlab
Sakuyu434682 天前
Git-GitLab-JenKins
git·gitlab·jenkins
Aaron_dw2 天前
基于 Jenkins + GitLab + 自动化测试的 CI/CD 自动化系统方案(IaC + 弹性构建节点)
ci/cd·gitlab·jenkins
虎头金猫2 天前
自建 GitLab 没公网?用内网穿透技术,远程开发协作超丝滑
运维·服务器·网络·开源·gitlab·开源软件·开源协议
MinterFusion4 天前
如何在openKylin下安装并配置GitLab(v0.1.1)
gitlab·系统维护·devops工具·麒麟操作系统·明德融创·openkylin
我就是你毛毛哥5 天前
Docker 安装 GitLab
docker·容器·gitlab