X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=docker%2FDockerfile;h=8f124cb2813023f9eb5bb133895413db8f9a6ae5;hb=0ea5233caabae215afb0769194a87f32a430fa2d;hp=f5ac0e8696613bd28cd6f93af9113b72dd359c78;hpb=914d679eab3335a59e4425218def6d4d38dd2c1d;p=bottlenecks.git diff --git a/docker/Dockerfile b/docker/Dockerfile index f5ac0e86..8f124cb2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -7,18 +7,20 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -FROM ubuntu:14.04 -MAINTAINER MatthewLi +FROM ubuntu:16.04 +MAINTAINER Yang (Gabriel) Yu 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 -ENV creds ${BOTTLENECKS_REPO_DIR}/config/openstack.creds #new test suite required packages can be added here RUN apt-get update && apt-get install -y \ @@ -29,21 +31,22 @@ RUN apt-get update && apt-get install -y \ curl \ wget \ git \ - sshpass \ python \ - python-dev \ python-pip \ + vim \ + iputils-ping \ + sshpass \ python-setuptools && \ - easy_install -U setuptools - -RUN apt-get -y autoremove && \ + apt-get -y autoremove && \ apt-get clean +RUN easy_install -U setuptools==30.0.0 + 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 -RUN pip install -r ${REPOS_DIR}/bottlenecks/requirements.txt +RUN pip install -r ${BOTTLENECKS_REPO_DIR}/requirements/requirements.txt +RUN pip install -U ${BOTTLENECKS_REPO_DIR}