diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-08-21 11:42:44 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-08-21 11:42:44 +0800 |
commit | 91eed5403503d576b8f7d37ad88f44923a574085 (patch) | |
tree | 96bc941ed7a55b77dc49914562db6a4d30f88a31 | |
parent | 02708db0054bcabf4db151d4b364d70ecc44ef18 (diff) |
Fix docker install
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>
-rwxr-xr-x | deploy/prepare.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy/prepare.sh b/deploy/prepare.sh index a620ac98..0927347c 100755 --- a/deploy/prepare.sh +++ b/deploy/prepare.sh @@ -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 |