aboutsummaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
Diffstat (limited to 'boot')
-rw-r--r--boot/sdc_install.sh3
-rw-r--r--boot/sdc_wfd_vm_init.sh18
2 files changed, 21 insertions, 0 deletions
diff --git a/boot/sdc_install.sh b/boot/sdc_install.sh
index 2c32266c..556a9b0d 100644
--- a/boot/sdc_install.sh
+++ b/boot/sdc_install.sh
@@ -56,8 +56,10 @@ apt-get install --allow-unauthenticated -y apt-transport-https ca-certificates w
# Download scripts from Nexus
curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/sdc_vm_init.sh -o /opt/sdc_vm_init.sh
curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/sdc_serv.sh -o /opt/sdc_serv.sh
+curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/sdc_wfd_vm_init.sh -o /opt/sdc_wfd_vm_init.sh
chmod +x /opt/sdc_vm_init.sh
chmod +x /opt/sdc_serv.sh
+chmod +x /opt/sdc_wfd_vm_init.sh
mv /opt/sdc_serv.sh /etc/init.d
update-rc.d sdc_serv.sh defaults
@@ -141,3 +143,4 @@ fi
# Run docker containers. For openstack Ubuntu 16.04 images this will run as a service after the VM has restarted
./sdc_vm_init.sh
+./sdc_wfd_vm_init.sh
diff --git a/boot/sdc_wfd_vm_init.sh b/boot/sdc_wfd_vm_init.sh
new file mode 100644
index 00000000..bcbcb4ac
--- /dev/null
+++ b/boot/sdc_wfd_vm_init.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+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)
+RELEASE=$(cat /opt/config/sdc_wfd_docker.txt)
+
+source /opt/config/onap_ips.txt
+
+# pull sdc-workflow-designer docker image
+docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
+docker pull $NEXUS_DOCKER_REPO/onap/sdc/sdc-workflow-designer:$RELEASE
+
+docker rm -f sdc-workflow-designer
+
+
+# setup sdc-workflow-designer docker image
+docker run --detach --name sdc-workflow-designer --ulimit memlock=-1:-1 --memory 1g --memory-swap=1g --ulimit nofile=4096:100000 --publish 9527:8080 $NEXUS_DOCKER_REPO/onap/sdc/sdc-workflow-designer:$RELEASE