summaryrefslogtreecommitdiffstats
path: root/lenovo/docker
diff options
context:
space:
mode:
authorChangjun Wang <310397125@qq.com>2019-03-28 06:23:28 +0000
committerChangjun Wang <310397125@qq.com>2019-03-28 06:23:28 +0000
commitb322e0914ea5210e9e71d199ed1d41b0e7adddeb (patch)
treeb3dc03e02c749a1e94db938978897e87ae375111 /lenovo/docker
parent9ac3a7a4882bf8d0a0814d8cff9b4abd62a74a9f (diff)
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>
Diffstat (limited to 'lenovo/docker')
-rw-r--r--lenovo/docker/Dockerfile6
1 files changed, 4 insertions, 2 deletions
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