Use the pull_docker_image function 69/8469/1
authorVictor Morales <victor.morales@intel.com>
Wed, 23 Aug 2017 18:28:19 +0000 (13:28 -0500)
committerVictor Morales <victor.morales@intel.com>
Wed, 23 Aug 2017 18:31:12 +0000 (13:31 -0500)
The portal script was calling docker CLI to retrieve a mariadb
docker image that is hosted in the public hub. This change uses
the pull_docker_image functioUse the pull_docker_image function

Change-Id: Ie9f40fc019bda3655075b09d46360cdade8df949
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: INT-21

bootstrap/vagrant-onap/lib/portal

index 8bd39b7..44cedb2 100755 (executable)
@@ -7,8 +7,7 @@ source /var/onap/asserts
 
 # install_mariadb() - Pull and create a MariaDB container
 function install_mariadb {
-    is_package_installed docker-ce || install_docker
-    docker pull mariadb
+    pull_docker_image mariadb
     docker create --name data_vol_portal -v /var/lib/mysql mariadb
 }