summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorPanagiotis Karalis <panos.pkaralis@gmail.com>2019-08-07 10:46:52 +0300
committerDan Xu <xudan16@huawei.com>2019-09-16 06:45:00 +0000
commit005d868d68dbb0e70b3f92a685ea269c4f646fd7 (patch)
treedcb1f0f64606b58f0c33e9dc96131fdbe4ed6398 /docker/Dockerfile
parentf0c44b1ae02ffbdb87da81dac7b6754c641d8c04 (diff)
Move the proj to python3
The aim of this patch is to upgrade python version of this project from python2 to python3. Signed-off-by: Panagiotis Karalis <panos.pkaralis@gmail.com> Change-Id: I3d3ef01176fda1b23a0542a24625be2f3368c40e
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile12
1 files changed, 7 insertions, 5 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 56ca1ea2..6d6a7db7 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -25,14 +25,16 @@ RUN \
libssl-dev \
libffi-dev \
vim \
- python-dev \
- python-pip \
+ python3-dev \
+ python3-pip \
--no-install-recommends \
&& \
rm -rf /var/lib/apt/lists/*
-RUN pip install -U setuptools wheel
+RUN pip3 install -U setuptools wheel
+ENV LC_ALL C.UTF-8
+ENV LANG C.UTF-8
ENV HOME /home/opnfv
ENV REPOS_DIR ${HOME}/dovetail
ENV API_DIR ${REPOS_DIR}/dovetail/api
@@ -46,11 +48,11 @@ RUN \
(cd /tmp/dovetail && \
git fetch --tags https://gerrit.opnfv.org/gerrit/dovetail $BRANCH && \
git checkout FETCH_HEAD && \
- pip install .) \
+ pip3 install .) \
&& \
rm -rf /tmp/dovetail \
&& \
- ln -s /usr/local/lib/python2.7/dist-packages/dovetail ${REPOS_DIR}/dovetail
+ ln -s /usr/local/lib/python3.6/dist-packages/dovetail ${REPOS_DIR}/dovetail
RUN \
git clone https://github.com/swagger-api/swagger-ui.git \