summaryrefslogtreecommitdiffstats
path: root/boot/aaf_vm_init.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-04-16 09:49:01 -0400
committerMarco Platania <platania@research.att.com>2018-04-16 09:55:59 -0400
commita310c917999db3edfb2eba58485d674ae8b35547 (patch)
tree89b24a19b735be2c44a52b80e5b19f4747a070f8 /boot/aaf_vm_init.sh
parent6429a03bbf50b7844f53e1549770571e22193af7 (diff)
Install AAF with Heat (WIP)
Change-Id: I65a9ded45dbaf238cbef4a3b29b6ecfc7171e670 Issue-ID: INT-444 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'boot/aaf_vm_init.sh')
-rw-r--r--boot/aaf_vm_init.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/boot/aaf_vm_init.sh b/boot/aaf_vm_init.sh
index d0f23953..7bc868a8 100644
--- a/boot/aaf_vm_init.sh
+++ b/boot/aaf_vm_init.sh
@@ -3,4 +3,20 @@
NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
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) \ No newline at end of file
+DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
+
+docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
+
+cd /opt/authz
+git pull
+
+sed -i "s/DOCKER_REPOSITORY=.*/DOCKER_REPOSITORY="$NEXUS_DOCKER_REPO"/g" /opt/authz/auth/docker/d.props
+sed -i "s/VERSION=.*/VERSION="$DOCKER_IMAGE_VERSION"/g" /opt/authz/auth/docker/d.props
+
+cd /opt/authz/auth/auth-cass/docker
+./dinstall.sh
+
+sleep 2
+
+cd /opt/authz/auth/docker
+./drun.sh \ No newline at end of file