summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangjun Wang <310397125@qq.com>2019-03-06 07:39:00 +0000
committerChangjun Wang <310397125@qq.com>2019-03-06 07:55:38 +0000
commit2c256a9e799701b1e012368a24e757d964badd2b (patch)
treed926b473f38944dee8381031182f7fb2997324a6
parentcc4e6853dca01ff1cdbbd6a163d1653e261d9a36 (diff)
Modify Lenovo Thinkcloud Dockerfile
Issue-ID: MULTICLOUD-515 Change-Id: I994b408a73d5ed8b883cdfb8b1df62078084bb5a Signed-off-by: Changjun Wang <310397125@qq.com>
-rw-r--r--lenovo/docker/Dockerfile13
1 files changed, 7 insertions, 6 deletions
diff --git a/lenovo/docker/Dockerfile b/lenovo/docker/Dockerfile
index 5660e8e0..e45dcd02 100644
--- a/lenovo/docker/Dockerfile
+++ b/lenovo/docker/Dockerfile
@@ -33,15 +33,16 @@ EXPOSE 9010
RUN groupadd -r onap && useradd -r -g onap onap
-RUN apt-get update && apt-get install -y memcached unzip gcc && \
+RUN apt-get update && apt-get install -y memcached wget unzip gcc && \
cd /opt/ && \
- wget -O multicloud-openstack-thinkcloud.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack&a=multicloud-openstack-thinkcloud&e=zip&v=1.3.0-SNAPSHOT" && \
+ wget -O multicloud-openstack-thinkcloud.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-thinkcloud.zip && \
- chmod +x /opt/thinkcloud/*.sh &&\
+ chmod +x /opt/thinkcloud/*.sh &&\
rm -f multicloud-openstack-thinkcloud.zip &&\
- pip install -r /opt/thinkcloud/requirements.txt &&\
- apt-get remove -y unzip gcc && \
- chown onap:onap /opt/thinkcloud -R
+ pip install -r /opt/thinkcloud/requirements.txt &&\
+ apt-get --purge remove -y wget unzip gcc && \
+ apt-get -y autoremove && \
+ chown onap:onap /opt/thinkcloud -R
USER onap