summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
blob: e40136857682913d76dbf1c4de6e4b47e192160f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:14.04
MAINTAINER Leo Wang <grakiss.wanglei@huawei.com>
LABEL version="0.1" description="OPNFV Dovetail Docker Container"

RUN \
    apt-get update \
&& \
    apt-get install -y \
        gcc \
        git \
        vim \
        python-dev \
        python-mock \
        python-pip \
        apt-transport-https \
        --no-install-recommends \
&& \
    apt-get update &&  apt-get -y install docker.io

ENV HOME /home/opnfv
ENV REPOS_DIR ${HOME}/dovetail
WORKDIR /home/opnfv

RUN \
    git config --global http.sslVerify false \
&& \
    git clone https://git.opnfv.org/dovetail ${REPOS_DIR} \
&& \
    mkdir -p ${REPOS_DIR}/results \
&& \
    pip install -U pip \
&& \
    pip install -U pytz \
&& \
    pip install -r ${REPOS_DIR}/requirements.txt \
&& \
    cd ${REPOS_DIR} \
&& \
    pip install -e .

WORKDIR ${REPOS_DIR}/dovetail