Here we will show you how to setup APPC build environment on Ubuntu 16.04
- Reference links
- 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 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 to $HOME/.m2 folder - Clone APPC git repository
mkdir -p $HOME/ONAP-APPC
cd $HOME/ONAP-APPC
# APPC Core projectsgit clone https://github.com/onap/appc-parent.git
git clone https://gerrit.onap.org/r/appc
# This for building APPC docker images
Build appc-parent
# TODO, for now we are using 3.0.1-ONAP tag and it should be changed to master
cd $HOME/ONAP-APPC/appc-parent
git pull -v
git checkout 3.0.1-ONAP
# Do the following POM file changes
- TODO
- TODO