一、官网地址:https://docs.gitlab.cn/jh/install/docker.html 二、步骤: 1.要求至少4个G 2. 先在linux主机创建一个gitlab的主目录,用于容器挂载:/srv/gitlab 3. 设置设置gitlab的环境变量(不设置也可以) export GITLAB_HOME=/srv/gitlab 4. docker 启动镜像 sudo docker run --detach \ --publish 4...
version:'3.6'services:web:image:'registry.gitlab.cn/omnibus/gitlab-jh:latest'restart:alwayshostname:'gitlab-example'environment:GITLAB_OMNIBUS_CONFIG:|external_url 'http://192.168.0.132' #关键字段,runner得能访问才行 # Add any other gitlab.rb configuration here, each on its own lineports:-'...
nohup scp -P 22 /data/gitlab/data/backups/jh_gitlab_backup.tar root@192.168.2.2:/data/git_back_data/ < /root/scp.out 备份数据 # 采用后台运行打印日志的方式备份,防止文件过大导致备份失败 nohup docker exec -t gitlab gitlab-backup create > /root/gitlab_backup.log 2>&1 & 备份配置文件...
1、新建gitlab目录,并配置环境变量GITLAB_HOME为gitlab目录地址 2、在gitlab目录下,准备docker-compose.yml文件,内容如下: version:'3.6'services: web: image:'registry.gitlab.cn/omnibus/gitlab-jh:latest'container_name:'gitlab'restart: always hostname:'gitlab.example.com'environment: GITLAB_OMNIBUS_C...
docker部署gitlab 一、基础环境简述,麒麟v10系统,arm-kunpeng920 1、官网下载二进制包 https://download.docker.com/linux/static/stable/aarch64/ 2、安装脚本 把docker安装包和脚本放到/opt目录下,执行脚本vim /opt/install_docker.sh #!/bin/sh# 设置变量#要安装的docker版本DOCKER_INSTALL_VERSION=26.0.0#...
本次使用的是极狐GitLab Docker 镜像,是极狐GitLab 的整体镜像,在单个容器中运行所有必要的服务 [root@base ~]# docker pull registry.gitlab.cn/omnibus/gitlab-jh:latest Trying to pull repository registry.gitlab.cn/omnibus/gitlab-jh ... latest: Pulling from registry.gitlab.cn/omnibus/gitlab-jh ...
EXTERNAL_URL="http://192.168.159.50"yum install-y gitlab-jh 这里的192.168.159.50是我虚拟机的ip,开发中一般是服务器域名 这里1.2G,装起来可能会费点时间 出现上面狐狸的标志说明安装成功了。 1.4 gitlab常用命令 代码语言:javascript 复制 gitlab-ctl start # 启动所有 gitlab 组件; ...
.243.136 \--publish 443:443 --publish 80:80 \--name gitlab \--restart always \--volume $GITLAB_HOME/config:/etc/gitlab:Z \--volume $GITLAB_HOME/logs:/var/log/gitlab:Z \--volume $GITLAB_HOME/data:/var/opt/gitlab:Z \--shm-size 256m \registry.gitlab.cn/omnibus/gitlab-jh:...
官方文档:极狐GitLab Docker 镜像 | 极狐GitLab 2.准备 2.1服务器/域名 在开始之前,请设置至少2Gswap 代码语言:javascript 复制 wget-Obox.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh&&chmod+x box.sh&&clear&&./box.sh ...
gitlab: image: 'registry.gitlab.cn/omnibus/gitlab-jh:17.0.1' restart: always # hostname: 'gitlab.xuxiaowei.cn' #healthcheck: # # 用于定义健康检查的命令,这里使用的是curl命令来测试指定URL的可访问性。 # test: ["CMD", "curl", "-k", "https://gitlab.xuxiaowei.cn/-/liveness?token...