summaryrefslogtreecommitdiffstats
path: root/vio/docker
diff options
context:
space:
mode:
authorEthan Lynn <xuanlangjian@gmail.com>2019-09-06 13:42:16 +0800
committerEthan Lynn <xuanlangjian@gmail.com>2019-09-06 16:46:26 +0800
commitf8eb83d7f0f406d79aede856b92fbc5a0461d1c3 (patch)
tree67dee8d66f4d246fcd5b43f00d03b700dfd263e0 /vio/docker
parent32982a84a29b62716f9d5d93a209c0db9f086467 (diff)
Drop python 2 support
Use python3 as default python version Change-Id: I82c95b7ae21ef0bc2a4bdca2536e35affbc5c9f5 Issue-ID: MULTICLOUD-706 Signed-off-by: Ethan Lynn <xuanlangjian@gmail.com>
Diffstat (limited to 'vio/docker')
-rw-r--r--vio/docker/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/vio/docker/Dockerfile b/vio/docker/Dockerfile
index 2bd40aa..9af63cf 100644
--- a/vio/docker/Dockerfile
+++ b/vio/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:2-alpine
+FROM python:3-alpine
ENV MSB_ADDR "127.0.0.1"
ENV MSB_PORT "80"
@@ -20,7 +20,7 @@ RUN apk update && \
wget -q -O multicloud-vio.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack.vmware&a=multicloud-openstack-vmware&v=1.4.1-SNAPSHOT&e=zip' && \
unzip multicloud-vio.zip && \
rm -rf multicloud-vio.zip && \
- pip install -r /opt/vio/requirements.txt && \
+ pip3 install -r /opt/vio/requirements.txt && \
mkdir -p /var/log/onap/multicloud/vio && \
chmod a+rw /var/log/onap/multicloud/vio && \
chown onap:onap -R /opt/vio/ && \