summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-08-23 13:28:19 -0500
committerVictor Morales <victor.morales@intel.com>2017-08-23 13:31:12 -0500
commit016dad0d7c293f9c463e6596bdb7384845beda3a (patch)
treeedfef86bb66e3cb48cd569e80acbf42f0b6802d9
parent23f8914490b2eed35f784da6b97b23ab8e4dec5b (diff)
Use the pull_docker_image function
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
-rwxr-xr-xbootstrap/vagrant-onap/lib/portal3
1 files changed, 1 insertions, 2 deletions
diff --git a/bootstrap/vagrant-onap/lib/portal b/bootstrap/vagrant-onap/lib/portal
index 8bd39b7e9..44cedb20d 100755
--- a/bootstrap/vagrant-onap/lib/portal
+++ b/bootstrap/vagrant-onap/lib/portal
@@ -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
}