From b322e0914ea5210e9e71d199ed1d41b0e7adddeb Mon Sep 17 00:00:00 2001 From: Changjun Wang <310397125@qq.com> Date: Thu, 28 Mar 2019 06:23:28 +0000 Subject: Add https support for multicloud lenovo The https endpoint can be enabled by setting env: SSL_ENABLED=true Issue-ID: MULTICLOUD-538 Change-Id: I20ca09c431380d65098d42fadd1d92003cca69ba Signed-off-by: Changjun Wang <310397125@qq.com> --- lenovo/docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lenovo/docker') diff --git a/lenovo/docker/Dockerfile b/lenovo/docker/Dockerfile index 9e98f3f4..09011351 100644 --- a/lenovo/docker/Dockerfile +++ b/lenovo/docker/Dockerfile @@ -35,15 +35,17 @@ RUN groupadd -r onap && useradd -r -g onap onap # COPY ./ /opt/lenovo/ 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-lenovo.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack&a=multicloud-openstack-lenovo&e=zip&v=1.3.0-SNAPSHOT" && \ unzip -q -o -B multicloud-openstack-lenovo.zip && \ chmod +x /opt/lenovo/*.sh &&\ rm -f multicloud-openstack-lenovo.zip &&\ pip install -r /opt/lenovo/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/lenovo && \ + chown onap:onap /var/log/onap -R && \ chown onap:onap /opt/lenovo -R USER onap -- cgit 1.2.3-korg