ONAP Developer Set-Up
...
Expand |
---|
|
|
---|
Add the following option to your MAVEN_OPTS in order not to periodically hang on downloading artifacts in linux | -Djava.net.preferIPv4Stack=true | enable IP4 forwarding to enable the RHEL VM to act as an edge router - without this docker containers cannot communicate | add to /etc/sysctl.conf net.ipv4.ip_forward = 1 | Install docker (required for some repos like dcae-inventory off dcae |
Code Block |
---|
|
to install kubernetes follow Cloud Native Deployment#Scriptedundercloud(Helm/Kubernetes/Docker)andONAPinstall-SingleVM |
|
|
...
Expand |
---|
|
|
---|
enable ubuntu desktop | apt-get update apt-get install ubuntu-desktop | enable static IP | vi /etc/network/interfaces add iface enp0s25 inet static address 192.168.15.101 netmask 255.255.255.0 network 192.168.15.0 broadcast 192.168.15.255 gateway 192.168.15.1 dns-nameservers 8.8.4.4 | disable strict host checking (client and server) | in ~/.ssh/config
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
| Enable non CD repositories so an apt-get update will work | comment out the CD first line in /etc/apt/sources.list | enable ssh if skipped during installation so we can remote ssh | sudo apt-get install openssh-server | enable root login and gui (no sudo su -) | sudo passwd root sudo usermod -U root sudo reboot now sudo vi /etc/lightdm/lightdm.conf [SeatDefaults] greeter-session=unity-greeter user-session=ubuntu greeter-show-manual-login=true
: enable root login vi /etc/ssh/sshd_config FROM:
PermitRootLogin prohibit-password
TO:
PermitRootLogin yes systemctl restart sshd | Add the following option to your MAVEN_OPTS in order not to periodically hang on downloading artifacts in linux | in /etc/environment -Djava.net.preferIPv4Stack=true | Install docker (required when building docker images)
| use the current as of 20180621 17.03 version in the script https://git.onap.org/logging-analytics/tree/deploy/rancher/oom_rancher_setup.sh which is
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
| curl https://releases.rancher.com/install-docker/17.03.sh | sh |
|
|
...
- You need to be part of the onap organization in GitHub (see GitHub, click on your icon and select 'My Organizations')
If you are not a member of this organization email support.linuxfoundation.org and ask to be added to the onap organization in GitHub
Note. It is possible to enter a different organization if you at least member of 1 organization (you can create your own in GitHub).
The plugin wizard crashes if you are member of no organization at all, see this Bug: https://jira.sonarsource.com/browse/SLI-426 - Make sure you have added the SonarLint plugin
To use SonarLint with Onap projects you need to setup a connection with SonarCloud
...
The component you are working on may require additional tool installations, see the relevant section under Development Guides.
Troubleshooting & Know Issues
...
Expand |
---|
The first issue is that the current ONAP master tagged version of the checkstyle does not work with Eclipse Oxygen/Photon (and maybe other versions) because of the "curly bracket" issue. There is a fix on the way but it's not here yet. The current tagged version of oparent we are using in Policy is 1.2.1. To get around this issue, check out oparent, checked out the 1.2.1 tag, fixed the "curly bracket" bug and built it on my local machine. - Check out oparent
- git tag -l
- git co tags/1.2.3 -b 1.2.3
- If you want CheckStyle to ignore generated files, do the following:
- Add the following tag to the above file:
<module name="SuppressionFilter"> <property name="file" value="<absolute path to the directory of the file>/suppressions.xml"/> </module> - Create a file called "suppressions.xml" in the folder given above, and put the following content in it:
<?xml version="1.0"?> <!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd"> <suppressions> <suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/> </suppressions>
- The versions in the POMs in oparent are snapshot, so we need to change those to 1.2.1
mvn versions:set -DnewVersion=1.2.1 - Now build locally:
mvn clean install
|
Appendix