赞
踩
换成自己的ip
[root@node2 ~] mkdir gitlab [root@node2 gitlab] cd gitlab [root@node2 gitlab] vim docker-compose.yml 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'
[root@node2 gitlab] docker-compose up -d
[root@node2 gitlab] docker exec -it gitlab cat /etc/gitlab/initial_root_password
[root@node2 gitlab]# docker exec -it gitlab cat /etc/gitlab/initial_root_password
# WARNING: This value is valid only in the following conditions
# 1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).
# 2. Password hasn't been changed manually, either via UI or via command line.
#
# If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
Password: Lwj/TwtfIVAt9qzDrr8TEdp8e0ch5TFLxUPDqw4IXIE=
# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
说明:只是复制以上的地址链接是拉取不到代码的,毕竟是私人仓库还要认证,所以要对以上的地址改装为已经认证的地址,让它在任何的idea上都可以拉取代码
格式:http://用户名:token@+http地址
综上就获得我们的拉取代码实际的链接:
http://guyusi:d_xAdf7KusJGDn43HhcQ@47.112.155.60:8929/root/devops.git
以上就可以拉去代码了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。