summaryrefslogtreecommitdiffstats
path: root/boot/nbi_install.sh
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2018-04-17 17:09:44 +0200
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2018-04-17 17:09:44 +0200
commit0d4045572e474080b22f81546306bae1a98afbc2 (patch)
tree2afd6c7f12fa7c83cab27aeba3e6d604251676e2 /boot/nbi_install.sh
parentd60cdf2bd31e6a8143aa5bc36ec7b12414c68523 (diff)
Fix deployment errors in nbi cloud init
add some missing needed variables in heat stack part of nbi (ip addresses of sdc, aai and so). Retrieve them and use them in nbi_vm_init.sh script. Clean nbi_install.sh script in order to be faster. Change-Id: I234e0ebdaa75c87c1585bf128831af54515e1eab Issue-ID: EXTAPI-76 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Diffstat (limited to 'boot/nbi_install.sh')
-rw-r--r--boot/nbi_install.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/boot/nbi_install.sh b/boot/nbi_install.sh
index 71546016..079f5246 100644
--- a/boot/nbi_install.sh
+++ b/boot/nbi_install.sh
@@ -47,11 +47,8 @@ then
ifup eth1
fi
-# Download dependencies
-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 --allow-unauthenticated -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate make
+apt-get install --allow-unauthenticated -y apt-transport-https ca-certificates curl git ntp ntpdate make software-properties-common
# Download scripts from Nexus
curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/nbi_vm_init.sh -o /opt/nbi_vm_init.sh
@@ -62,10 +59,13 @@ mv /opt/nbi_serv.sh /etc/init.d
update-rc.d nbi_serv.sh defaults
# Download and install docker-engine and docker-compose
-echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
+curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
+add-apt-repository \
+ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
+ $(lsb_release -cs) \
+ stable"
apt-get update
-apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
-apt-get install -y --allow-unauthenticated docker-engine
+apt-get install -y docker-ce
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