Bugfix: docker build failed 85/59385/1
authorrexlee8776 <limingjiang@huawei.com>
Sat, 30 Jun 2018 04:23:27 +0000 (04:23 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Sat, 30 Jun 2018 04:23:27 +0000 (04:23 +0000)
Due to no inventory.ini specified in Dockerfile, which
resulsts in ansible-playbook run fail

JIRA: YARDSTICK-1277

Change-Id: Iaf689b71b8c86b54b2451d8a8c480f7d94d53561
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
docker/Dockerfile

index 7f85cbd..4aa7237 100644 (file)
@@ -40,7 +40,7 @@ RUN git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/yardstick ${Y
 RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
 RUN git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/storperf ${STORPERF_REPO_DIR}
 
-RUN ansible-playbook -c local -vvv -e INSTALLATION_MODE="container" ${YARDSTICK_REPO_DIR}/ansible/install.yaml
+RUN ansible-playbook -i ${YARDSTICK_REPO_DIR}/ansible/install-inventory.ini -c local -vvv -e INSTALLATION_MODE="container" ${YARDSTICK_REPO_DIR}/ansible/install.yaml
 
 RUN ${YARDSTICK_REPO_DIR}/docker/supervisor.sh