summaryrefslogtreecommitdiffstats
path: root/open-o/openo_docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'open-o/openo_docker.sh')
-rwxr-xr-xopen-o/openo_docker.sh168
1 files changed, 84 insertions, 84 deletions
diff --git a/open-o/openo_docker.sh b/open-o/openo_docker.sh
index b857988..ec54304 100755
--- a/open-o/openo_docker.sh
+++ b/open-o/openo_docker.sh
@@ -9,164 +9,164 @@
##############################################################################
function docker_pull()
{
- until docker pull openoint/common-services-auth:$OPENO_VERSION
+ until sudo docker pull openoint/common-services-auth:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-services-drivermanager:$OPENO_VERSION
+ until sudo docker pull openoint/common-services-drivermanager:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-services-extsys:$OPENO_VERSION
+ until sudo docker pull openoint/common-services-extsys:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-services-msb:$OPENO_VERSION
+ until sudo docker pull openoint/common-services-msb:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-services-protocolstack:$OPENO_VERSION
+ until sudo docker pull openoint/common-services-protocolstack:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-services-wso2ext:$OPENO_VERSION
+ until sudo docker pull openoint/common-services-wso2ext:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-tosca-catalog:$OPENO_VERSION
+ until sudo docker pull openoint/common-tosca-catalog:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-tosca-inventory:$OPENO_VERSION
+ until sudo docker pull openoint/common-tosca-inventory:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-tosca-modeldesigner:$OPENO_VERSION
+ until sudo docker pull openoint/common-tosca-modeldesigner:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/gso-service-gateway:$OPENO_VERSION
+ until sudo docker pull openoint/gso-service-gateway:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/gso-service-manager:$OPENO_VERSION
+ until sudo docker pull openoint/gso-service-manager:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/nfvo-dac:$OPENO_VERSION
+ until sudo docker pull openoint/nfvo-dac:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/nfvo-driver-sdnc-zte:$OPENO_VERSION
+ until sudo docker pull openoint/nfvo-driver-sdnc-zte:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/nfvo-driver-vim:$OPENO_VERSION
+ until sudo docker pull openoint/nfvo-driver-vim:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/nfvo-driver-vnfm-huawei:$OPENO_VERSION
+ until sudo docker pull openoint/nfvo-driver-vnfm-huawei:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull huangxiangyu/nfvo-driver-vnfm-juju:$OPENO_VERSION
+ until sudo docker pull huangxiangyu/nfvo-driver-vnfm-juju:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/nfvo-driver-vnfm-zte:$OPENO_VERSION
+ until sudo docker pull openoint/nfvo-driver-vnfm-zte:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/nfvo-lcm:$OPENO_VERSION
+ until sudo docker pull openoint/nfvo-lcm:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/nfvo-resmanagement:$OPENO_VERSION
+ until sudo docker pull openoint/nfvo-resmanagement:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/nfvo-umc:$OPENO_VERSION
+ until sudo docker pull openoint/nfvo-umc:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/gso-gui-portal:$OPENO_VERSION
+ until sudo docker pull openoint/gso-gui-portal:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/common-tosca-aria:$OPENO_VERSION
+ until sudo docker pull openoint/common-tosca-aria:$OPENO_VERSION
do
echo "Try again"
done
if [[ $ENABLE_SDNO == true ]]; then
- until docker pull openoint/sdno-driver-ct-te:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-driver-ct-te:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-driver-huawei-l3vpn:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-driver-huawei-l3vpn:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-driver-huawei-openstack:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-driver-huawei-openstack:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-driver-huawei-overlay:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-driver-huawei-overlay:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-driver-huawei-servicechain:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-driver-huawei-servicechain:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-driver-zte-sptn:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-driver-zte-sptn:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-brs:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-brs:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-ipsec:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-ipsec:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-l2vpn:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-l2vpn:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-l3vpn:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-l3vpn:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-mss:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-mss:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-nslcm:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-nslcm:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-overlayvpn:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-overlayvpn:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-servicechain:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-servicechain:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-vpc:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-vpc:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-service-vxlan:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-service-vxlan:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-monitoring:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-monitoring:$OPENO_VERSION
do
echo "Try again"
done
- until docker pull openoint/sdno-vsitemgr:$OPENO_VERSION
+ until sudo docker pull openoint/sdno-vsitemgr:$OPENO_VERSION
do
echo "Try again"
done
@@ -178,54 +178,54 @@ function docker_run()
OPENO_VERSION=${OPENO_VERSION:-"1.0.0"}
msb_ip=$OPENO_IP:$COMMON_SERVICES_MSB_PORT
- docker run -d --name common-services-msb -p $OPENO_IP:$COMMON_SERVICES_MSB_PORT:80 openoint/common-services-msb:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --add-host controller:127.0.0.1 --name common-services-auth openoint/common-services-auth:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name common-services-drivermanager openoint/common-services-drivermanager:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name common-services-extsys openoint/common-services-extsys:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name common-services-protocolstack openoint/common-services-protocolstack:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name common-services-wso2ext openoint/common-services-wso2ext:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name common-tosca-catalog openoint/common-tosca-catalog:$OPENO_VERSION
- tosca_inventory_id=$(docker run -d -e MSB_ADDR=$msb_ip --name common-tosca-inventory openoint/common-tosca-inventory:$OPENO_VERSION)
- tosca_inventory_ip=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' $tosca_inventory_id)
- docker run -d -e MSB_ADDR=$msb_ip --name common-tosca-modeldesigner openoint/common-tosca-modeldesigner:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name gso-service-gateway openoint/gso-service-gateway:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip -e MYSQL_ADDR=$tosca_inventory_ip:3306 --name gso-service-manager openoint/gso-service-manager:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name nfvo-dac openoint/nfvo-dac:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-sdnc-zte openoint/nfvo-driver-sdnc-zte:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-vim openoint/nfvo-driver-vim:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-vnfm-huawei openoint/nfvo-driver-vnfm-huawei:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-vnfm-juju -p $OPENO_IP:$NFVO_DRIVER_VNFM_JUJU_PORT:8483 -p $OPENO_IP:$NFVO_DRIVER_VNFM_JUJU_MYSQL_PORT:3306 huangxiangyu/nfvo-driver-vnfm-juju:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-vnfm-zte openoint/nfvo-driver-vnfm-zte:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip -e MYSQL_ADDR=$tosca_inventory_ip:3306 --name nfvo-lcm -p $OPENO_IP:8403:8403 openoint/nfvo-lcm:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name nfvo-resmanagement openoint/nfvo-resmanagement:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name nfvo-umc openoint/nfvo-umc:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name common-tosca-aria -p $OPENO_IP:$COMMON_TOSCA_ARIA_PORT:8204 openoint/common-tosca-aria:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name gso-gui-portal openoint/gso-gui-portal:$OPENO_VERSION
+ sudo docker run -d --name common-services-msb -p $OPENO_IP:$COMMON_SERVICES_MSB_PORT:80 openoint/common-services-msb:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --add-host controller:127.0.0.1 --name common-services-auth openoint/common-services-auth:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name common-services-drivermanager openoint/common-services-drivermanager:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name common-services-extsys openoint/common-services-extsys:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name common-services-protocolstack openoint/common-services-protocolstack:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name common-services-wso2ext openoint/common-services-wso2ext:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name common-tosca-catalog openoint/common-tosca-catalog:$OPENO_VERSION
+ tosca_inventory_id=$(sudo docker run -d -e MSB_ADDR=$msb_ip --name common-tosca-inventory openoint/common-tosca-inventory:$OPENO_VERSION)
+ tosca_inventory_ip=$(sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' $tosca_inventory_id)
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name common-tosca-modeldesigner openoint/common-tosca-modeldesigner:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name gso-service-gateway openoint/gso-service-gateway:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip -e MYSQL_ADDR=$tosca_inventory_ip:3306 --name gso-service-manager openoint/gso-service-manager:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name nfvo-dac openoint/nfvo-dac:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-sdnc-zte openoint/nfvo-driver-sdnc-zte:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-vim openoint/nfvo-driver-vim:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-vnfm-huawei openoint/nfvo-driver-vnfm-huawei:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-vnfm-juju -p $OPENO_IP:$NFVO_DRIVER_VNFM_JUJU_PORT:8483 -p $OPENO_IP:$NFVO_DRIVER_VNFM_JUJU_MYSQL_PORT:3306 huangxiangyu/nfvo-driver-vnfm-juju:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name nfvo-driver-vnfm-zte openoint/nfvo-driver-vnfm-zte:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip -e MYSQL_ADDR=$tosca_inventory_ip:3306 --name nfvo-lcm -p $OPENO_IP:8403:8403 openoint/nfvo-lcm:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name nfvo-resmanagement openoint/nfvo-resmanagement:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name nfvo-umc openoint/nfvo-umc:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name common-tosca-aria -p $OPENO_IP:$COMMON_TOSCA_ARIA_PORT:8204 openoint/common-tosca-aria:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name gso-gui-portal openoint/gso-gui-portal:$OPENO_VERSION
if [[ $ENABLE_SDNO == true ]]; then
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-huawei-l3vpn openoint/sdno-driver-huawei-l3vpn:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-huawei-openstack openoint/sdno-driver-huawei-openstack:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-huawei-overlay openoint/sdno-driver-huawei-overlay:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-huawei-servicechain openoint/sdno-driver-huawei-servicechain:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-zte-sptn openoint/sdno-driver-zte-sptn:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-brs openoint/sdno-service-brs:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-ipsec openoint/sdno-service-ipsec:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-l2vpn openoint/sdno-service-l2vpn:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-l3vpn openoint/sdno-service-l3vpn:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-mss openoint/sdno-service-mss:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip -e MYSQL_ADDR=$tosca_inventory_ip:3306 --name sdno-service-nslcm openoint/sdno-service-nslcm:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-overlayvpn openoint/sdno-service-overlayvpn:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-servicechain openoint/sdno-service-servicechain:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-vpc openoint/sdno-service-vpc:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-vxlan openoint/sdno-service-vxlan:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-ct-te openoint/sdno-driver-ct-te:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-monitoring openoint/sdno-monitoring:$OPENO_VERSION
- docker run -d -e MSB_ADDR=$msb_ip --name sdno-vsitemgr openoint/sdno-vsitemgr:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-huawei-l3vpn openoint/sdno-driver-huawei-l3vpn:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-huawei-openstack openoint/sdno-driver-huawei-openstack:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-huawei-overlay openoint/sdno-driver-huawei-overlay:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-huawei-servicechain openoint/sdno-driver-huawei-servicechain:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-zte-sptn openoint/sdno-driver-zte-sptn:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-brs openoint/sdno-service-brs:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-ipsec openoint/sdno-service-ipsec:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-l2vpn openoint/sdno-service-l2vpn:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-l3vpn openoint/sdno-service-l3vpn:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-mss openoint/sdno-service-mss:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip -e MYSQL_ADDR=$tosca_inventory_ip:3306 --name sdno-service-nslcm openoint/sdno-service-nslcm:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-overlayvpn openoint/sdno-service-overlayvpn:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-servicechain openoint/sdno-service-servicechain:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-vpc openoint/sdno-service-vpc:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-service-vxlan openoint/sdno-service-vxlan:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-driver-ct-te openoint/sdno-driver-ct-te:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-monitoring openoint/sdno-monitoring:$OPENO_VERSION
+ sudo docker run -d -e MSB_ADDR=$msb_ip --name sdno-vsitemgr openoint/sdno-vsitemgr:$OPENO_VERSION
fi
}
-function clean() {
- docker ps -a | grep openoint | awk '{print $1}' | xargs docker rm -f || true
+function docker_clean() {
+ sudo docker ps -a | grep openoint | awk '{print $1}' | xargs sudo docker rm -f || true
}
@@ -233,7 +233,7 @@ function launch_openo() {
log_info "launch_openo enter"
docker_pull
- clean
+ docker_clean
docker_run
echo -e "\n\033[32mOpen-O launch success\033[0m\n"