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 | sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum-config-manager --enable docker-ce-edge
sudo yum makecache fast
sudo yum install docker-ce
sudo systemctl start docker 20190130
Code Block |
---|
| sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -O jq
sudo chmod 777 jq
# not +x or jq will not be runnable from your non-root user
sudo mv jq /usr/local/bin
jq --version
sudo usermod -aG docker ubuntu
|
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 |
|
|
...
Setting up the ONAP Checkstyle for Eclipse
Set "ONAP" configuration in Eclipse
To set the newly built checkstyle files in Eclipse:
- Preferences->Checkstyle
- Click "New"
- Select "External Configuration File"
- Give it a name eg ONAP
- Point at the file <your_git_folder>/oparent/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml
(assuming you have downloaded the oparent repo) - Click OK
- Select "ONAP" configuration and click "Set as Default"
- Select "Apply and Close"
Apply "ONAP" configuration to a project in Eclipse
Now we need to activate the checkstyle on one project and set it as the blueprint for all of them:
...