summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.centos7
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Dockerfile.centos7')
-rw-r--r--docker/Dockerfile.centos717
1 files changed, 13 insertions, 4 deletions
diff --git a/docker/Dockerfile.centos7 b/docker/Dockerfile.centos7
index c423badd..f9b944fe 100644
--- a/docker/Dockerfile.centos7
+++ b/docker/Dockerfile.centos7
@@ -1,3 +1,12 @@
+##############################################################################
+# Copyright (c) 2019 opnfv.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
FROM centos:centos7
MAINTAINER Tomofumi Hayashi <tohayash@redhat.com>
LABEL version="0.1" description="OPNFV Dovetail Docker Container"
@@ -5,7 +14,7 @@ LABEL version="0.1" description="OPNFV Dovetail Docker Container"
ARG BRANCH=master
RUN yum update -y && yum install -y sudo iproute epel-release && \
- yum install -y python-pip git docker && \
+ yum install -y python3-pip git docker && \
sed -ie 's/requiretty/!requiretty/g' /etc/sudoers
ENV HOME /home/opnfv
@@ -14,9 +23,9 @@ WORKDIR /home/opnfv
RUN git config --global http.sslVerify false && \
git clone --depth 1 -b $BRANCH https://git.opnfv.org/dovetail ${REPOS_DIR} && \
- pip install -U pip && \
- pip install -r ${REPOS_DIR}/requirements.txt && \
- pip install -e . && \
+ pip3 install -U pip3 && \
+ pip3 install -r ${REPOS_DIR}/requirements.txt && \
+ pip3 install -e . && \
mkdir -p ${REPOS_DIR}/results
WORKDIR ${REPOS_DIR}/dovetail