Versions Compared

Key

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

...



install java 

set JAVA_HOME in ~/.bashrc


install git and development tools

install npm
(will also be installed automatically by the ecomp build)
sudo apt install npm

download and install Maven 3.5.0

create an ~/.m2 folder and copy our settings.xml there

add maven to your path - check it with mvn --version

http://maven.apache.org/download.cgi

tar -xvf apache-maven-3.5.0-bin.tar.gz

or

sudo apt install maven

Add the following option to your MAVEN_OPTS in order not to periodically hang on downloading artifacts in linux-Djava.net.preferIPv4Stack=true
Install docker (required for some repos like dcae-inventory off dcae

sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get update
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
docker ps

Build ONAP

root@obriendev:/home/ubuntu/onap# mvn clean install -U -DskipTests=true


Install git-review

<<TODO: describe a Linux client set-up for Git and git-review>>

...

The dcae build will install npm in most cases - however if you run into issues like the following - install it yourself

Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:npm (npm install) on project ecompportal-FE-os: Failed to run task: 'npm install' failed. (error code -4048)


Install NodeJs from https://nodejs.org/en/

...