blob: 8bcd6e599dc4d20d4dc21f77c294b6a8b607cf65 [file] [log] [blame]
Bin Yangb0eb2df2022-03-10 09:36:00 +08001#FROM python:3.8-alpine
2FROM nexus3.onap.org:10001/onap/integration-python:9.1.0
Ethan Lynnc7633872017-08-28 16:45:26 +08003
Bin Yang0a542042020-02-01 11:20:43 +08004ENV MSB_PROTO "http"
Ethan Lynnc7633872017-08-28 16:45:26 +08005ENV MSB_ADDR "127.0.0.1"
6ENV MSB_PORT "80"
7ENV AAI_ADDR "aai.api.simpledemo.openecomp.org"
8ENV AAI_PORT "8443"
9ENV AAI_SCHEMA_VERSION "v11"
10ENV AAI_USERNAME "AAI"
11ENV AAI_PASSWORD "AAI"
Andreas Geissleraa75c522022-11-08 10:01:54 +010012ENV AAI_PROTOCOL "https"
Ethan Lynnc7633872017-08-28 16:45:26 +080013
14EXPOSE 9001
15
Bin Yangb0eb2df2022-03-10 09:36:00 +080016# RUN addgroup -S onap && adduser -S -G onap onap
17USER root
Bin Yang673917e2019-02-21 03:59:31 +000018
Bin Yangd0eb1792019-08-16 09:48:35 +000019COPY ./multicloud-framework-broker-*.zip /opt/multicloud-framework.zip
Xiaohua Zhang2faa7742019-04-12 08:47:03 +000020RUN apk update && \
Bin Yang38e915a2022-03-01 15:27:08 +080021 apk add --no-cache uwsgi && \
22 apk add --no-cache --virtual .build-deps wget unzip gcc make libc-dev libffi-dev openssl-dev && \
Ethan Lynnc7633872017-08-28 16:45:26 +080023 cd /opt/ && \
Ethan Lynnc7633872017-08-28 16:45:26 +080024 unzip -q -o -B multicloud-framework.zip && \
25 rm -f multicloud-framework.zip && \
Bin Yangf4801b22019-08-16 08:08:35 +000026 pip3 install -r /opt/multivimbroker/requirements.txt && \
27 pip3 install -r /opt/multivimbroker/uwsgi-requirements.txt && \
Bin Yang38e915a2022-03-01 15:27:08 +080028 apk del --no-network .build-deps && \
Xiaohua Zhang9d536982019-03-08 06:08:47 +000029 mkdir -p /var/log/onap/multicloud/multivimbroker && \
30 chown onap:onap /var/log/onap -R && \
Bin Yang673917e2019-02-21 03:59:31 +000031 chown onap:onap /opt/multivimbroker -R
32
33USER onap
Ethan Lynnc7633872017-08-28 16:45:26 +080034
35WORKDIR /opt/multivimbroker
Bin Yang673917e2019-02-21 03:59:31 +000036CMD /bin/sh -c /opt/multivimbroker/run.sh