...
- Install and setup Docker
sudo apt update -y
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common wget zip
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update -y
sudo apt install -y docker-ce
sudo apt-get install -y docker-compose
sudo usermod -aG docker $USER
Note: You should logout and login back to execute docker commands
- Install Java & Maven
sudo apt update
sudo apt install openjdk-8-jdk openjdk-8-jre -y
sudo apt install maven -y
bash -c 'echo export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 >> ~/.bashrc'
- Setup local maven repository
mkdir -p $HOME/.m2
Download and copy settings.xml settings.xml to $HOME/.m2 folder - Clone APPC git repository
mkdir -p $HOME/ONAP-APPC
cd $HOME/ONAP-APPC
# Clone APPC Core projects
git clone https://github.com/onap/appc-parentgit clone https://gerrit.onap.org/r/appc
# This for building APPC docker images
Build appc-parent
cd $HOME/ONAP-APPC/appc-parent
# We need to increment minor version in the following POM files
# Execute the following command to increment the minor version from 1.4.1-SNAPSHOT to 1.4.2-SNAPSHOT
# Skip the below steps this is not required
# find find . -name "pom.xml" | xargs sed -i 's|1.4.1-SNAPSHOT|1.4.2-SNAPSHOT|g'
# Use the following command verify the list of files updated
# grep -ril '1.4.2-SNAPSHOT'
...
# Replace '1.1.3' with 1.2.2 4 using the below command, otherwise we can use vi or other text editor to the same
...
# This is required to use the CCSDK with ODL Fluorine SR2 release
...
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>odlparent-lite</artifactId>
<version>1.2.2<4</version>
<relativePath />
</parent>
...