1525e474792860ef5b9328eb23a74562173bdd9e
[multicloud/framework.git] / multivimbroker / docker / Dockerfile
1 FROM python:2
2
3 ENV MSB_ADDR "127.0.0.1"
4 ENV MSB_PORT "80"
5 ENV AAI_ADDR "aai.api.simpledemo.openecomp.org"
6 ENV AAI_PORT "8443"
7 ENV AAI_SCHEMA_VERSION "v11"
8 ENV AAI_USERNAME "AAI"
9 ENV AAI_PASSWORD "AAI"
10
11 EXPOSE 9001
12
13 RUN groupadd -r onap && useradd -r -g onap onap
14
15 # COPY ./ /opt/multivimbroker/
16 RUN apt-get update && \
17     apt-get install -y unzip && \
18     cd /opt/ && \
19     wget -O multicloud-framework.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.framework.broker&a=multicloud-framework-broker&e=zip&v=1.2.3-SNAPSHOT" && \
20     unzip -q -o -B multicloud-framework.zip && \
21     rm -f multicloud-framework.zip && \
22     pip install -r /opt/multivimbroker/requirements.txt && \
23     chown onap:onap /opt/multivimbroker -R
24
25 USER onap
26
27 WORKDIR /opt/multivimbroker
28 CMD /bin/sh -c /opt/multivimbroker/run.sh

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use