summaryrefslogtreecommitdiffstats
path: root/windriver/docker/Dockerfile
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-02-20 08:19:52 +0000
committerBin Yang <bin.yang@windriver.com>2019-02-20 08:19:52 +0000
commit9e4332e346db651ff2fc9e12783e59dd46282354 (patch)
treea9957a8e55460f243382deab808ccdb64adb4d8f /windriver/docker/Dockerfile
parented3137ada09e2ff3aa5005a8e003b48d1d01b2bb (diff)
Run multicloud-windriver service as non root user
Disable vesagent and remove the dependency on rabbitmq-server The vesagent should be maintained as a standalone microservice Change-Id: I4877c0c25c973d0dd8f8511f457fed07ca61647b Issue-ID: MULTICLOUD-493 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'windriver/docker/Dockerfile')
-rw-r--r--windriver/docker/Dockerfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/windriver/docker/Dockerfile b/windriver/docker/Dockerfile
index 7ec9bb73..376fa951 100644
--- a/windriver/docker/Dockerfile
+++ b/windriver/docker/Dockerfile
@@ -16,17 +16,21 @@ ENV AAI_PASSWORD "AAI"
EXPOSE 9005
+RUN groupadd -r onap && useradd -r -g onap onap
# COPY ./ /opt/windriver/
+
RUN apt-get update && \
apt-get install -y memcached && \
- apt-get install -y rabbitmq-server && \
apt-get install -y unzip && \
cd /opt/ && \
wget -O multicloud-openstack-windriver.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack&a=multicloud-openstack-windriver&e=zip&v=1.3.0-SNAPSHOT" && \
unzip -q -o -B multicloud-openstack-windriver.zip && \
chmod +x /opt/windriver/*.sh && \
rm -f multicloud-openstack-windriver.zip && \
- pip install -r /opt/windriver/requirements.txt
+ pip install -r /opt/windriver/requirements.txt && \
+ chown onap:onap /opt/windriver -R
+
+USER onap
WORKDIR /opt/windriver
CMD /bin/sh -c /opt/windriver/run.sh