summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2019-03-14 15:00:05 +0200
committerStamatis Katsaounis <mokats@intracom-telecom.com>2019-03-20 07:55:37 +0000
commitf27b1382a87c432487816cfad6e5c341250d16b2 (patch)
tree31c4adf47b4073c0f4e9ed639afeca55a553fd49 /docker
parentef2d5282306a277e591aa3c355277c6f158d8e76 (diff)
Improve Dockerfile
This patch improves the Dockerfile which produces the Dovetail image. Change-Id: I65e65f155afe237b11c668e6486e48b55cc7e96c Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile32
1 files changed, 13 insertions, 19 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index c5239dbb..15c0a4f1 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,5 +1,5 @@
-FROM ubuntu:14.04
-MAINTAINER Leo Wang <grakiss.wanglei@huawei.com>
+FROM ubuntu:18.04
+MAINTAINER Stamatis Katsaounis <mokats@intracom-telecom.com>
LABEL version="0.1" description="OPNFV Dovetail Docker Container"
ARG BRANCH=master
@@ -8,41 +8,35 @@ RUN \
apt-get update \
&& \
apt-get install -y \
- build-essential \
gcc \
+ make \
git \
libssl-dev \
libffi-dev \
vim \
python-dev \
- python-mock \
python-pip \
- apt-transport-https \
- wget \
--no-install-recommends \
&& \
- apt-get update
+ rm -rf /var/lib/apt/lists/*
-RUN easy_install -U setuptools==30.0.0
-
-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
+RUN pip install -U setuptools wheel
ENV HOME /home/opnfv
ENV REPOS_DIR ${HOME}/dovetail
-WORKDIR /home/opnfv
+WORKDIR $HOME
RUN \
mkdir -p ${REPOS_DIR} \
&& \
- git config --global http.sslVerify false \
+ git init /tmp/dovetail \
+&& \
+ (cd /tmp/dovetail && \
+ git fetch --tags https://gerrit.opnfv.org/gerrit/dovetail $BRANCH && \
+ git checkout FETCH_HEAD && \
+ pip install .) \
&& \
- pip install git+https://git.opnfv.org/dovetail@$BRANCH#egg=dovetail \
+ rm -rf /tmp/dovetail \
&& \
ln -s /usr/local/lib/python2.7/dist-packages/dovetail ${REPOS_DIR}/dovetail