Linux Foundation

The Linux Foundation is a large open source non-profit organisation that promotes and foster collaborative development.

Open Source

Readings from Daniel Shiffman - Open Source Course:

ONAP

ONAP (Open Network Automation Platform) is an open source software platform that delivers capabilities for the design, creation, orchestration, monitoring, and life cycle management of

  • Virtual Network Functions (VNFs)
  • The carrier-scale Software Defined Networks (SDNs) that contain them
  • Higher-level services that combine the above

Contributing to ONAP

Getting access to the source code

ONAP is composed of a big list of projects on which you can contribute to.

To have a preview of the projects you can check the mirrored repositories on GitHub/onap. As mirror you can’t really contribute to them that way.

To contribute using you need to:

  • Go on the ONAP’s Gerrit: gerrit.onap.org
  • Create a linux foundation account (in Account signup / management)
  • Then you need to sign in (it’s a tiny sign in link under the search button).
  • Create a ssh public key (like you would do on GitHub):
ssh-keygen -t rsa
  • Add your public key in settings/SSH Public Keys
  • test your ssh tunnel with :
ssh -p 29418 <sshusername>@gerrit.<project>.org
  • On your project page, you should be able to clone the project using ssh.

Commit to the project

Each project has a JIRA project associated to it at jira.onap.org. It is a good way to find things to do on a project.

To contribute and actually commit code you would need:

  • Acquire the commit hook:
curl -Lo ./.git/hooks/commit-msg https://gerrit.onap.org/r/tools/hooks/commit-msg
chmod +x ./.git/hooks/commit-msg
  • Add the files to your commit message
git add .
  • Sign off the commit and add the issue ID to the footer (it’s case-sensitive)
Fix important stuff

Change-Id: I706ec04d541925be8f04c44254379523f2085eca
Issue-ID: POLICY-389
Signed-off-by: Bob <bob@mail.com>
  • Push your code to refs for master:
git push origin HEAD:refs/for/master
  • It will go through a process of being reviewed, accepted. To make any change to your commit, use:
git commit --amend

Sources