Merge "Add csit cases for ems-driver"
[integration.git] / bootstrap / vagrant-onap / lib / _onap_functions
index 12ac176..18a4659 100755 (executable)
@@ -28,6 +28,15 @@ function pull_openecomp_image {
     docker logout
 }
 
+# pull_onap_image() - Pull Docker container image from a Docker Registry Hub
+function pull_onap_image {
+    local image=$1
+    local tag=$2
+    docker_openecomp_login
+    pull_docker_image $nexus_docker_repo/onap/${image}:$docker_version $tag
+    docker logout
+}
+
 # configure_bind()- Configure bind utils
 function configure_bind {
     _install_bind
@@ -66,6 +75,7 @@ function _configure_maven {
         fi
     fi
 
+    mkdir -p $(dirname $mvn_conf_file)
     if [ ! -f $mvn_conf_file ]; then
         if [[ "$enable_oparent" == "True" ]]; then
             clone_repo oparent