aboutsummaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorEric Debeau <eric.debeau@orange.com>2018-04-16 19:22:50 +0000
committerEric Debeau <eric.debeau@orange.com>2018-04-16 19:23:55 +0000
commit3fbdd9d7c13c4666a46f6b70884c2c509138b92f (patch)
tree05e1d816570eb4a4c59a8c385e2ab3495ddba72e /boot
parentcf7a2042c88b7079ef829a62ef2d468afef7bd1b (diff)
Correct ExternalAPI-NBI init script
Add directory /opt/nbi Correct docker-compose.yml path Issue-ID: INT-456 Change-Id: I872da967874c444ae8c76fd9f5784bdadbd00da0 Signed-off-by: Eric Debeau <eric.debeau@orange.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/nbi_vm_init.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/boot/nbi_vm_init.sh b/boot/nbi_vm_init.sh
index 576ec1da..9fac717b 100644
--- a/boot/nbi_vm_init.sh
+++ b/boot/nbi_vm_init.sh
@@ -5,9 +5,12 @@ NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
-# Fetch the latest docker-compose.yml
+# Create nbi directory
+mkdir /opt/nbi
cd /opt/nbi
-wget https://git.onap.org/externalapi/nbi/tree/docker-compose.yml?h=master
+
+# Fetch the latest docker-compose.yml
+wget -o docker-compose.yml https://git.onap.org/externalapi/nbi/plain/docker-compose.yml?h=master
# Pull the nbi docker image from nexus
# MariaDB and mongoDB will be pulled automatically from docker.io during docker-compose
@@ -16,4 +19,4 @@ docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
docker pull $NEXUS_DOCKER_REPO/onap/externalapi/nbi:$DOCKER_IMAGE_VERSION
# Start nbi, MariaDB and MongoDB containers with docker compose and nbi/docker-compose.yml
-/opt/docker/docker-compose up -d \ No newline at end of file
+/opt/docker/docker-compose up -d