summaryrefslogtreecommitdiffstats
path: root/vio/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'vio/docker/Dockerfile')
-rw-r--r--vio/docker/Dockerfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/vio/docker/Dockerfile b/vio/docker/Dockerfile
index b5289e6..6cd1361 100644
--- a/vio/docker/Dockerfile
+++ b/vio/docker/Dockerfile
@@ -18,13 +18,17 @@ RUN apt-get update && \
apt-get install -y wget && \
apt-get install -y redis-server
+RUN groupadd -r onap && useradd -r -g onap onap
RUN cd /opt/ && \
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.3.0-SNAPSHOT&e=zip' && \
unzip multicloud-vio.zip && \
rm -rf multicloud-vio.zip && \
- pip install -r vio/requirements.txt
+ pip install -r vio/requirements.txt && \
+ chown onap:onap -R vio/
+USER onap
WORKDIR /opt
-ENTRYPOINT vio/docker/docker-entrypoint.sh
+# ENTRYPOINT vio/docker/docker-entrypoint.sh
+CMD ["/bin/sh", "-c", "/opt/vio/run.sh"]