Bin Yang | b0eb2df | 2022-03-10 09:36:00 +0800 | [diff] [blame] | 1 | #FROM python:3.8-alpine |
| 2 | FROM nexus3.onap.org:10001/onap/integration-python:9.1.0 |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 3 | |
Bin Yang | 0a54204 | 2020-02-01 11:20:43 +0800 | [diff] [blame] | 4 | ENV MSB_PROTO "http" |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 5 | ENV MSB_ADDR "127.0.0.1" |
| 6 | ENV MSB_PORT "80" |
| 7 | ENV AAI_ADDR "aai.api.simpledemo.openecomp.org" |
| 8 | ENV AAI_PORT "8443" |
| 9 | ENV AAI_SCHEMA_VERSION "v11" |
| 10 | ENV AAI_USERNAME "AAI" |
| 11 | ENV AAI_PASSWORD "AAI" |
Andreas Geissler | aa75c52 | 2022-11-08 10:01:54 +0100 | [diff] [blame] | 12 | ENV AAI_PROTOCOL "https" |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 13 | |
| 14 | EXPOSE 9001 |
| 15 | |
Bin Yang | b0eb2df | 2022-03-10 09:36:00 +0800 | [diff] [blame] | 16 | # RUN addgroup -S onap && adduser -S -G onap onap |
| 17 | USER root |
Bin Yang | 673917e | 2019-02-21 03:59:31 +0000 | [diff] [blame] | 18 | |
Bin Yang | d0eb179 | 2019-08-16 09:48:35 +0000 | [diff] [blame] | 19 | COPY ./multicloud-framework-broker-*.zip /opt/multicloud-framework.zip |
Xiaohua Zhang | 2faa774 | 2019-04-12 08:47:03 +0000 | [diff] [blame] | 20 | RUN apk update && \ |
Bin Yang | 38e915a | 2022-03-01 15:27:08 +0800 | [diff] [blame] | 21 | apk add --no-cache uwsgi && \ |
| 22 | apk add --no-cache --virtual .build-deps wget unzip gcc make libc-dev libffi-dev openssl-dev && \ |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 23 | cd /opt/ && \ |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 24 | unzip -q -o -B multicloud-framework.zip && \ |
| 25 | rm -f multicloud-framework.zip && \ |
Bin Yang | f4801b2 | 2019-08-16 08:08:35 +0000 | [diff] [blame] | 26 | pip3 install -r /opt/multivimbroker/requirements.txt && \ |
| 27 | pip3 install -r /opt/multivimbroker/uwsgi-requirements.txt && \ |
Bin Yang | 38e915a | 2022-03-01 15:27:08 +0800 | [diff] [blame] | 28 | apk del --no-network .build-deps && \ |
Xiaohua Zhang | 9d53698 | 2019-03-08 06:08:47 +0000 | [diff] [blame] | 29 | mkdir -p /var/log/onap/multicloud/multivimbroker && \ |
| 30 | chown onap:onap /var/log/onap -R && \ |
Bin Yang | 673917e | 2019-02-21 03:59:31 +0000 | [diff] [blame] | 31 | chown onap:onap /opt/multivimbroker -R |
| 32 | |
| 33 | USER onap |
Ethan Lynn | c763387 | 2017-08-28 16:45:26 +0800 | [diff] [blame] | 34 | |
| 35 | WORKDIR /opt/multivimbroker |
Bin Yang | 673917e | 2019-02-21 03:59:31 +0000 | [diff] [blame] | 36 | CMD /bin/sh -c /opt/multivimbroker/run.sh |