MAINTAINER Yujun Zhang <zhang.yujunz@zte.com.cn>
 LABEL version="0.1" description="OPNFV QTIP Docker container"
 
-
-
+ARG BRANCH=master
 
 ENV REPOS_DIR /home/opnfv/repos
 ENV QTIP_DIR /home/opnfv/repos/qtip
 ENV HOME /home/opnfv
 WORKDIR /home/opnfv
 
-
-#Packaged Dependencies
-
-
+# Packaged Dependencies
 RUN apt-get update && apt-get install -y \
 software-properties-common \
 wget \
 supervisor \
 --no-install-recommends
 
+
 RUN apt-add-repository ppa:ansible/ansible -y
 RUN apt-key update -y
 RUN apt-get update -y
 RUN apt-get install ansible --force-yes -y
 
 
-
 RUN mkdir -p ${REPOS_DIR}
 RUN mkdir -p /root/.ssh
 RUN mkdir -p $HOME/qtip/logs
 #Cloning Repos
 
 RUN git config --global http.sslVerify false
-RUN git clone https://gerrit.opnfv.org/gerrit/qtip $REPOS_DIR/qtip
+RUN git clone -b $BRANCH https://gerrit.opnfv.org/gerrit/qtip $REPOS_DIR/qtip
 RUN git clone https://gerrit.opnfv.org/gerrit/releng $REPOS_DIR/releng
 
 RUN pip install -r $REPOS_DIR/qtip/requirements.txt
 RUN locale-gen en_US en_US.UTF-8
 COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
 
-
 CMD ["/usr/bin/supervisord"]