diff options
author | YuanHu <yuan.hu1@zte.com.cn> | 2018-04-12 10:41:43 +0800 |
---|---|---|
committer | YuanHu <yuan.hu1@zte.com.cn> | 2018-04-12 10:41:43 +0800 |
commit | 666613159db3d937c6319d0e6011b6011757a729 (patch) | |
tree | 7280a69a074c324501cc5e2528ac0828b9492853 /boot | |
parent | 060092fe3d74293c2b32e333d3cd8ea7afc32add (diff) |
Add heat script for deploying sdc-wfd
Provide the heat template script for deploying a sdc-workflow-designer to an openstack environment.
Issue-ID: SDC-1208, INT-464
Change-Id: I61a06a66fab75928a3ed8d2ce2c426a0675a2606
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'boot')
-rw-r--r-- | boot/sdc_install.sh | 3 | ||||
-rw-r--r-- | boot/sdc_wfd_vm_init.sh | 18 |
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 |