X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=docker%2FDockerfile;h=7e7793eea1e8f46c86a3649a3e8d17704386b735;hb=refs%2Fchanges%2F71%2F28571%2F1;hp=f5ac0e8696613bd28cd6f93af9113b72dd359c78;hpb=491c218b3d06bdb9eb54aa70905e8ec3c6f0b173;p=bottlenecks.git diff --git a/docker/Dockerfile b/docker/Dockerfile index f5ac0e86..7e7793ee 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -15,6 +15,9 @@ LABEL image=opnfv/bottlenecks # GIT repo directory ENV REPOS_DIR /home/opnfv +# CI docker image label +ARG BRANCH=master + # Bottlenecks repo ENV BOTTLENECKS_REPO_DIR ${REPOS_DIR}/bottlenecks ENV RELENG_REPO_DIR ${REPOS_DIR}/releng @@ -34,7 +37,7 @@ RUN apt-get update && apt-get install -y \ python-dev \ python-pip \ python-setuptools && \ - easy_install -U setuptools + easy_install -U setuptools==30.0.0 RUN apt-get -y autoremove && \ apt-get clean @@ -42,7 +45,7 @@ RUN apt-get -y autoremove && \ RUN mkdir -p ${REPOS_DIR} RUN git config --global http.sslVerify false -RUN git clone https://gerrit.opnfv.org/gerrit/bottlenecks ${BOTTLENECKS_REPO_DIR} +RUN git clone -b $BRANCH https://gerrit.opnfv.org/gerrit/bottlenecks ${BOTTLENECKS_REPO_DIR} RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR} RUN easy_install pytz