blob: c4b11213765bd3c08247c5e77d59558d3379da4c (
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
|
FROM ubuntu:14.04
MAINTAINER Leo Wang <grakiss.wanglei@huawei.com>
LABEL version="0.1" description="OPNFV Dovetail Docker Container"
ARG BRANCH=master
RUN \
apt-get update \
&& \
apt-get install -y \
build-essential \
gcc \
git \
libssl-dev \
libffi-dev \
vim \
python-dev \
python-mock \
python-pip \
apt-transport-https \
wget \
--no-install-recommends \
&& \
apt-get update
RUN wget -qO- https://get.docker.com/ \
| \
sed 's/-q docker-ce/-q docker-ce=17.03.0~ce-0~ubuntu-trusty/' \
| \
sed 's/edge/stable/' \
| \
sh
ENV HOME /home/opnfv
ENV REPOS_DIR ${HOME}/dovetail
WORKDIR /home/opnfv
RUN \
mkdir -p ${REPOS_DIR} \
&& \
git config --global http.sslVerify false \
&& \
pip install git+https://git.opnfv.org/dovetail@$BRANCH#egg=dovetail \
&& \
ln -s /usr/local/lib/python2.7/dist-packages/dovetail ${REPOS_DIR}/dovetail
WORKDIR ${REPOS_DIR}/dovetail
# get db schema from opnfv sites
RUN mkdir -p ${REPOS_DIR}/dovetail/utils/local_db
ADD get_db_schema.py ${REPOS_DIR}/dovetail/utils/local_db
RUN cd ${REPOS_DIR}/dovetail/utils/local_db && python get_db_schema.py
|