Add docker run instruction in demo for esr.
[demo.git] / boot / portal_install.sh
index e25118c..c1b816e 100644 (file)
@@ -48,9 +48,10 @@ then
 fi
 
 # Download dependencies
-add-apt-repository -y ppa:openjdk-r/ppa
+echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu $(lsb_release -c -s) main" >>  /etc/apt/sources.list.d/java.list
+echo "deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu $(lsb_release -c -s) main" >>  /etc/apt/sources.list.d/java.list
 apt-get update
-apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git unzip mysql-client-core-5.6 ntp ntpdate make
+apt-get install --allow-unauthenticated -y apt-transport-https ca-certificates wget openjdk-8-jdk git unzip mysql-client-core-5.6 ntp ntpdate make
 
 # Download scripts from Nexus
 curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/portal_vm_init.sh -o /opt/portal_vm_init.sh
@@ -93,8 +94,6 @@ resolvconf -u
 # Clone Gerrit repository and run docker containers
 mkdir -p /PROJECT/OpenSource/UbuntuEP/logs
 cd /opt
-#git clone -b $GERRIT_BRANCH --single-branch $CODE_REPO
+git clone -b $GERRIT_BRANCH --single-branch $CODE_REPO
 
-#PORTAL ALREADY IS AT RELEASE-1.1.0. HARDCODE THE BRANCH NAME. THIS IS A TEMPORARY SOLUTION.
-git clone -b release-1.1.0 --single-branch $CODE_REPO
 ./portal_vm_init.sh
\ No newline at end of file