1 Star 1 Fork 1

rootegg / cicd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.sh 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
rootegg 提交于 2023-09-19 17:16 . gitlab默认密码修改
#!/bin/bash
# function setHarbor(){
# local OLDPATH=$(pwd)
# cd /etc/rc.d/init.d/
# pwd
# cd ${OLDPATH}
# pwd
# }
# setHarbor
# CURRENT_DIR=$(cd `dirname $0`; pwd)
# echo ${CURRENT_DIR}
# InitPwd=$(docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password | awk '{print substr($2,0)}')
# echo $InitPwd
#echo "http://root:ImUsmHosXhDNh8TflvUGU73zxzHL/hVP1HGzu3U/PhA=@10.0.2.15:30300/root/vuetest.git" > ~/.git-credentials
#git config --global credential.helper store
# cd vuetest
# rm -rf .git
# git init
# git config user.name "root"
# git config user.email "root@a.com"
# #git config user.password "$InitPwd"
# #git config credential.helper store
# git add .
# git commit --quiet -m "init"
# git remote add origin http://10.0.2.15:30300/root/vuetest.git
# expect -c "
# spawn git push -u origin master
# expect \"Username for*\"
# send \"root\r\"
# expect \"Password for*\"
# send \"${InitPwd}\r\"
# expect eof
# "
# sh ./p.git.sh < p.git.data
# expect -c "
# spawn docker exec -it gitlab bash bash -c \"
# \"
# "
docker exec gitlab gitlab-rails runner -e production 'user = User.find_by(name: "root"); user.password = "Gitlab12345"; user.password_confirmation = "Gitlab12345"; user.save!'
1
https://gitee.com/rootegg/cicd.git
git@gitee.com:rootegg/cicd.git
rootegg
cicd
cicd
master

搜索帮助