diff options
author | lizi <li.zi30@zte.com.cn> | 2017-10-11 10:06:00 +0800 |
---|---|---|
committer | lizi <li.zi30@zte.com.cn> | 2017-10-11 10:06:00 +0800 |
commit | e3b5cbf286975ab1cb466081d0fb5759771a9733 (patch) | |
tree | 776e8cc1a5a4f8db47ee4c3943ac0a86b5ed2b05 /boot | |
parent | acb47ad255d6d3fd9de3cd904cbbb300a1b2a781 (diff) |
Add docker run instruction in demo for esr.
Change-Id: I9b0fe996a337d88ab081f0033aec07ff0c80b09b
Issue-ID: AAI-421
Signed-off-by: lizi <li.zi30@zte.com.cn>
Diffstat (limited to 'boot')
-rw-r--r-- | boot/esr_vm_init.sh | 19 | ||||
-rw-r--r-- | boot/openo_all_serv.sh | 3 | ||||
-rw-r--r-- | boot/openo_install.sh | 2 |
3 files changed, 23 insertions, 1 deletions
diff --git a/boot/esr_vm_init.sh b/boot/esr_vm_init.sh new file mode 100644 index 00000000..beb80419 --- /dev/null +++ b/boot/esr_vm_init.sh @@ -0,0 +1,19 @@ +#!/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) +DOCKER_IMAGE_VERSION=$(cat /opt/config/esr_docker.txt) + +source /opt/config/onap_ips.txt + +# start up esr +docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO +docker pull $NEXUS_DOCKER_REPO/onap/aai/esr-server:$DOCKER_IMAGE_VERSION +docker pull $NEXUS_DOCKER_REPO/onap/aai/esr-gui:$DOCKER_IMAGE_VERSION + +docker rm -f esr_server +docker rm -f esr_gui + +docker run -i -t -d -p 9518:9518 -e MSB_ADDR=$OPENO_IP:80 --name esr_server $NEXUS_DOCKER_REPO/onap/aai/esr-server:$DOCKER_IMAGE_VERSION +docker run -i -t -d -p 8080:9519 -e MSB_ADDR=$OPENO_IP:80 --name esr_gui $NEXUS_DOCKER_REPO/onap/aai/esr-gui:$DOCKER_IMAGE_VERSION
\ No newline at end of file diff --git a/boot/openo_all_serv.sh b/boot/openo_all_serv.sh index e451fb1b..9c523a8c 100644 --- a/boot/openo_all_serv.sh +++ b/boot/openo_all_serv.sh @@ -4,4 +4,5 @@ bash /opt/msb_vm_init.sh &>/dev/null &disown bash /opt/vnfsdk_vm_init.sh &>/dev/null &disown bash /opt/mvim_vm_init.sh &>/dev/null &disown bash /opt/vfc_vm_init.sh &>/dev/null &disown -bash /opt/uui_vm_init.sh &>/dev/null &disown
\ No newline at end of file +bash /opt/uui_vm_init.sh &>/dev/null &disown +bash /opt/esr_vm_init.sh &>/dev/null &disown
\ No newline at end of file diff --git a/boot/openo_install.sh b/boot/openo_install.sh index 24f84fd5..5066f7b3 100644 --- a/boot/openo_install.sh +++ b/boot/openo_install.sh @@ -62,6 +62,7 @@ curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/uui_vm_init.sh -o /opt curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/openo_all_serv.sh -o /opt/openo_all_serv.sh curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/openo_serv.sh -o /opt/openo_serv.sh curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/cli_install.sh -o /opt/cli_install.sh +curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/esr_vm_init.sh -o /opt/esr_vm_init.sh chmod +x /opt/vnfsdk_vm_init.sh chmod +x /opt/msb_vm_init.sh chmod +x /opt/mvim_vm_init.sh @@ -70,6 +71,7 @@ chmod +x /opt/uui_vm_init.sh chmod +x /opt/openo_all_serv.sh chmod +x /opt/openo_serv.sh chmod +x /opt/cli_install.sh +chmod +x /opt/esr_vm_init.sh mv /opt/openo_serv.sh /etc/init.d update-rc.d openo_serv.sh defaults |