gitlab in home

how to setup the client to use a specific ssh key

Xin@XQ-T410 ~/tmp/temp/testproject (master)
$ cat ~/bin/gitsshwrap.sh
#!/bin/bash
ssh -i ~/.ssh/id_rsa $@
Xin@XQ-T410 ~/tmp/temp/testproject (master)
$ GIT_SSH=gitsshwrap.sh git clone [email protected]:user/testproject.git

how to create ssh key and upload public

https://help.github.com/articles/generating-ssh-keys

to check out from a ssh port other than 22

Using a standard url format and specific the port number
$ GIT_SSH=gitsshwrap.sh git clone ssh://[email protected]:888/user/testproject.git ./test_2
instead of
$ GIT_SSH=gitsshwrap.sh git clone [email protected]:user/testproject.git

how to setup email

http://wiki.bitnami.com/Applications/BitNami_GitLab

  1. change the settings as the following

    config.action_mailer.delivery_method = :smtp
    # Defaults to:
    # # config.action_mailer.sendmail_settings = {
    # # location: '/usr/sbin/sendmail',
    # # arguments: '-i -t'
    # # }
    config.action_mailer.perform_deliveries = true
    config.action_mailer.raise_delivery_errors = true
    config.action_mailer.default_url_options = { host: 'sample.com' }
    config.action_mailer.smtp_settings = {
    :address => "smtp.exmail.qq.com",
    :port => 25,
    :domain => "sample.com",
    :authentication => :plain,
    :user_name => "[email protected]",
    :password => "sample_com_passwd",
    :enable_starttls_auto => true
    }
    end

  2. change mail from in the gitlab.yml

    /opt/bitnami/apps/gitlab/htdocs/config# vi gitlab.yml

    ## GitLab settings
    gitlab:
    ## Web server settings
    host: sample.com
    port: 443
    https: true
    email_from: mail@sample.com
    support_email: mail@sample.com

  3. change init.d file to prevent the above file be changed accross reboot

    root@linux:/opt/bitnami/apps/gitlab/htdocs/config# cat /etc/init.d/bnconfig-gitlab 
    exec /opt/bitnami/apps/gitlab/bnconfig --machine_hostname sample.com
    

how I setup this machine

  1. download vmware image from bitnami
  2. convert to ovf and using virtual box to start it
  3. It seems like ssh have problem, add "service ssh start" to rc.local

icon identicons

https://identicons.github.com/xxx.png

push an existing repository into gitlab

git remote add origin1 ssh://git@sample.com:888/openpie/openpath.git
git push -u origin1 master

转载于:https://www.cnblogs.com/chianshin/p/3450581.html

猜你喜欢

转载自blog.csdn.net/weixin_34178244/article/details/94191592
今日推荐