Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Basics

The recommended version of get is 2.7.4 or later.  Check the installed version of git in the Ubuntu VM:

...

Create an SSH key to user with gerrit.  Use no passphrase.

ssh-keygen -t rsa

Enter your SSH public key (id_rsa) into gerrit:

Browse to https://gerrit.onap.org

Log in

Open the menu next to your name (under the green search button)

Image Added

Select "Settings"

In the "Settings" sidebar, click "SSH Public Keys"`

Click "Add Key..."

Paste the entire contents of $HOME/.ssh/id_rsa.pub into the text area and click "Add".

Image Added

Install the git-review package.

...

sudo apt install git-review

Get VirtualBox and VirtualBox Guest Additions

Make sure you have the VirtualBox Guest Additions ISO for your version of VirtualBox.  I'm using VirtualBox 5.1.28.  Save the Guest Additions ISO on your host computer along with the Ubuntu ISO.  Get the Guest Additions ISO from here:

http://download.virtualbox.org/virtualbox

NOTE: Guest Additions versions prior to 5.1 will not work with Ubuntu 16.04.3.  If you have an earlier version of VirtualBox, you should upgrade to the latest 5.1 version.Create $HOME/.gitconfig (replace highlighted values with your own information):

[user]
        name = FirstName LastName
        email = you@yourcompany.com
[core]
        autocrlf = false
[merge]
        tool = vimdiff
[gitreview]
        username = YourLinuxFoundationId

If you're behind a corporate firewall and your proxy server has SOCKS support...

You may be able to use the SSH protocol with git, which is preferred over HTTPS.  This method is known to work in the AT&T corporate network.

Install the socat package, which allows you to tunnel SSH connections through a proxy that supports SOCKS:

sudo apt update

sudo apt install socat

Create (or append to) $HOME/.ssh/config (replace highlighted values with your information)

Host gerrit.onap.org
User userid
Hostname gerrit.onap.org
ProxyCommand socat - PROXY:host:%h:%p,proxyport=port
IdentityFile /home/userid/.ssh/id_rsa
ServerAliveInterval 10

Verify that you have connectivity to gerrit through the proxy.  Answer "yes" to continue connecting, if prompted.

ssh -p 29418 gerrit.onap.org

Image Added

If you're behind a corporate firewall and you want to use HTTPS...

TODO