Merge "arm64: Using wily kernel since the vivid is gone" into stable/colorado stable/colorado colorado.3.0
authorJing Lu <lvjing5@huawei.com>
Thu, 1 Dec 2016 06:51:44 +0000 (06:51 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 1 Dec 2016 06:51:44 +0000 (06:51 +0000)
Dockerfile [deleted file]
docker/Dockerfile [moved from tests/ci/docker/yardstick-ci/Dockerfile with 91% similarity]
docker/Makefile [moved from tests/ci/docker/Makefile with 100% similarity]
docker/exec_tests.sh [moved from tests/ci/docker/yardstick-ci/exec_tests.sh with 100% similarity]

diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644 (file)
index 59dbef0..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-##############################################################################
-# Copyright (c) 2015 Ericsson AB and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-FROM ubuntu:14.04
-MAINTAINER Hans Feldt <hans.feldt@ericsson.com>
-
-# TODO: Is there some easy way to get the fastest/closest mirror?
-#RUN sed -i 's/archive.ubuntu.com/ftp.acc.umu.se/g' /etc/apt/sources.list
-
-RUN apt-get update && apt-get install -y \
-    libffi-dev \
-    libssl-dev \
-    libxml2-dev \
-    libxslt1-dev \
-    python \
-    python-dev \
-    python-setuptools && \
-    easy_install -U setuptools
-
-COPY . /tmp/yardstick
-
-RUN cd /tmp/yardstick && \
-    python setup.py install && \
-    apt-get -y remove \
-        binutils \
-        cpp \
-        gcc \
-        libffi-dev \
-        libssl-dev \
-        python3 \
-        python-dev && \
-    apt-get -y autoremove && \
-    apt-get clean && \
-    useradd -u 65500 -m yardstick && \
-    cp -a samples /home/yardstick && \
-    chown -R yardstick /home/yardstick/samples && \
-    chgrp -R yardstick /home/yardstick/samples && \
-    rm -rf /tmp/* && \
-    rm -rf /var/lib/apt/lists/*
-
-USER yardstick
-CMD bash --login
-ENV HOME /home/yardstick
-WORKDIR /home/yardstick
similarity index 91%
rename from tests/ci/docker/yardstick-ci/Dockerfile
rename to docker/Dockerfile
index 5387bab..cf9fca0 100644 (file)
@@ -11,6 +11,8 @@ FROM ubuntu:14.04
 
 LABEL image=opnfv/yardstick
 
+ARG BRANCH=master
+
 # GIT repo directory
 ENV REPOS_DIR /home/opnfv/repos
 
@@ -52,8 +54,8 @@ 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/yardstick ${YARDSTICK_REPO_DIR}
-RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
+RUN git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/yardstick ${YARDSTICK_REPO_DIR}
+RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
 
 # install yardstick + dependencies
 RUN cd ${YARDSTICK_REPO_DIR} && easy_install -U pip
similarity index 100%
rename from tests/ci/docker/Makefile
rename to docker/Makefile