aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
blob: 7cd245337480353620d445c3874775deeae0c54c (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
##########################################
#####Docker container for QTIP############
##########################################


FROM ubuntu:14.04
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 PYTHONPATH /home/opnfv/repos/qtip
ENV HOME /home/opnfv
WORKDIR /home/opnfv

# Packaged Dependencies
RUN apt-get update && apt-get install -y \
software-properties-common \
wget \
git \
gcc \
ssh \
expect \
python-matplotlib \
python-dev \
python-pip \
libjpeg62 \
libjpeg62-dev \
zlib1g-dev \
python-tk \
curl \
supervisor \
python-setuptools \
--no-install-recommends

RUN easy_install -U setuptools

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
RUN mkdir -p $HOME/qtip/results

RUN chmod 700 /root/.ssh

#Config ansible
COPY ansible.cfg.default /root/.ansible.cfg

#Cloning Repos

RUN git config --global http.sslVerify false
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

#Config supervisor

RUN mkdir -p /var/log/supervisor
RUN locale-gen en_US en_US.UTF-8
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

CMD ["/usr/bin/supervisord"]