summaryrefslogtreecommitdiffstats
path: root/windriver/docker
diff options
context:
space:
mode:
authorXiaohua Zhang <xiaohua.zhang@windriver.com>2019-03-08 03:52:45 +0000
committerXiaohua Zhang <xiaohua.zhang@windriver.com>2019-03-08 03:52:45 +0000
commitc37fdfb09161eb11ae9662ff63d52e1a50fb0e97 (patch)
tree1b8e4b8d9065f71a2f81f06136a11725bd4d8a5b /windriver/docker
parentc67c38021c18377a65a7d054aa280de5baa64d91 (diff)
Add https support for multicloud windriver plugin
The https endpoint can be enabled by setting env: SSL_ENABLED=true Change-Id: I4a081bc47bf7be62ddc87407344d2cd580bba5b7 Issue-ID: MULTICLOUD-519 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Diffstat (limited to 'windriver/docker')
-rw-r--r--windriver/docker/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/windriver/docker/Dockerfile b/windriver/docker/Dockerfile
index 8c73bc6e..f4e151fc 100644
--- a/windriver/docker/Dockerfile
+++ b/windriver/docker/Dockerfile
@@ -20,15 +20,17 @@ RUN groupadd -r onap && useradd -r -g onap onap
# COPY ./ /opt/windriver/
RUN apt-get update && \
- apt-get install -y memcached wget unzip gcc && \
+ apt-get install -y memcached wget unzip gcc libssl-dev && \
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 && \
- apt-get --purge remove -y wget unzip gcc && \
+ apt-get --purge remove -y wget unzip gcc libssl-dev && \
apt-get -y autoremove && \
+ mkdir -p /var/log/onap/multicloud/openstack/windriver && \
+ chown onap:onap /var/log/onap -R && \
chown onap:onap /opt/windriver -R
USER onap