gitlab
sudo apt-get update
sudo apt-get install ca-certificates curl openssh-server
curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
sudo bash /tmp/script.deb.sh
sudo apt-get install gitlab-ce
Модифицируем файл /etc/gitlab/gitlab.rb
external-url-for-gitlab
external_url 'https://ra02f.vzljot.spb:8088'
кидаем сертификаты в /etc/gitlab/ssl/
прописываем smtp всякие
sudo gitlab-ctl reconfigure
При возникновении
"No authentication methods configured"
надо
$ sudo gitlab-psql gitlabhq_production
gitlabhq_production=# UPDATE application_settings set password_authentication_enabled=true;
gitlabhq_production=# quit
$ sudo gitlab-ctl restart
SSL:
external_url 'https://ra02f.vzljot.spb:8088'
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.example.com.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.example.com.key"
После всех правок всегда делаем:
gitlab-ctl reconfigure
REDMINE integration
git clone --mirror https://redmine:redmine123@192.168.50.5:8088/test1/testpr2.git
cd project.git git fetch -q --all -p
CRON:
*/5 * * * * app cd /path/to/project.git && git fetch -q --all -p
*/5 * * * * cd /repos/testpr2.git && git fetch -q --all -p
Command line instructions
Git global setup
git config --global user.name "Administrator"
git config --global user.email "admin@example.com"
git config --global http.sslVerify false
Create a new repository
git clone https://ra02f.vzljot.spb:8088/test1/testpr2.git
cd testpr2
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder
cd existing_folder
git init
git remote add origin http://ra02f.vzljot.spb:8088/test1/testpr2.git
git add .
git commit -m "Initial commit"
git push -u origin master
Existing Git repository
cd existing_repo
git remote add origin http://ra02f.vzljot.spb:8088/test1/testpr2.git
git push -u origin --all
git push -u origin --tags
issues:
1. файлы в репозитарии в gitlab не показаны (project is empty)
переименовать путь проекта, сохранить, переименовать путь проекта обратно.
2. cannot push into git repository
git config receive.denyCurrentBranch ignore
https://1cloud.ru/help/linux/ustanovka-gitlab-na-ubuntu
https://www.8host.com/blog/ustanovka-i-nastrojka-gitlab-v-ubuntu-16-04/
https://docs.gitlab.com/omnibus/settings/smtp.html#smtp-on-localhost