X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=boot%2Fportal_install.sh;h=67512e5c7b2d45124dde06ec136d6920722d9f95;hb=refs%2Fheads%2Famsterdam;hp=e25118cb6230a0185005467692eaff4799081365;hpb=eb0c348a4baf6fd2026a7a3953d8f754ff71a1bf;p=demo.git diff --git a/boot/portal_install.sh b/boot/portal_install.sh index e25118cb..67512e5c 100644 --- a/boot/portal_install.sh +++ b/boot/portal_install.sh @@ -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 @@ -67,7 +68,7 @@ apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual apt-get install -y --allow-unauthenticated docker-engine mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose +curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP @@ -91,10 +92,7 @@ echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head 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 +./portal_vm_init.sh