bugfix: Add BRANCH Argument in the Dockerfile 95/25295/1
authorMatthewLi <matthew.lijun@huawei.com>
Thu, 1 Dec 2016 03:34:47 +0000 (22:34 -0500)
committerMatthewLi <matthew.lijun@huawei.com>
Thu, 1 Dec 2016 03:35:22 +0000 (22:35 -0500)
Change-Id: If5ccbe0633ed5331b38d8231e0dd6eadd05ecbe8
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
docker/Dockerfile

index 449ad70..aa718e3 100644 (file)
@@ -64,8 +64,8 @@ RUN mkdir -p /root/.ssh
 RUN chmod 700 /root/.ssh
 
 RUN git config --global http.sslVerify false
-RUN git --depth 1 -b $BRANCH clone https://gerrit.opnfv.org/gerrit/storperf ${repos_dir}/storperf
-RUN git --depth 1 clone https://gerrit.opnfv.org/gerrit/releng ${repos_dir}/releng
+RUN git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/storperf ${repos_dir}/storperf
+RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng ${repos_dir}/releng
 
 # Third party git fetches
 RUN git clone https://github.com/swagger-api/swagger-ui.git ${repos_dir}/swagger-ui