Fix docker install 11/39711/1
authorHarry Huang <huangxiangyu5@huawei.com>
Mon, 21 Aug 2017 03:42:44 +0000 (11:42 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Mon, 21 Aug 2017 03:42:44 +0000 (11:42 +0800)
Docker install only exist in off-line deploy
flow. Add it into normal deploy flow.

Change-Id: I2addf54eb6f74cb8faf799db343d84eaacea9fcb
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
deploy/prepare.sh

index a620ac9..0927347 100755 (executable)
@@ -92,6 +92,11 @@ function  _prepare_python_env() {
                 sudo yum install -y libffi libffi-devel openssl-devel
                 sudo yum groupinstall -y 'Development Tools'
             fi
+
+            sudo docker version >/dev/null 2>&1
+            if [[ $? -ne 0 ]]; then
+                install_docker
+            fi
         fi
    fi