3 ARG HTTP_PROXY=${HTTP_PROXY}
4 ARG HTTPS_PROXY=${HTTPS_PROXY}
6 ENV http_proxy $HTTP_PROXY
7 ENV https_proxy $HTTPS_PROXY
9 RUN echo "mysql-server mysql-server/root_password password root" | debconf-set-selections
10 RUN echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections
12 RUN apt-get update && \
13 apt-get install -y python-virtualenv && \
14 apt-get install -y python-setuptools && \
15 apt-get install -y python-dev && \
16 apt-get install -y python-pip && \
17 apt-get install -y gcc && \
18 apt-get install -y libmysqlclient-dev && \
19 apt-get install -y redis-server && \
20 apt-get install -y mysql-server && \
21 apt-get install -y mysql-client && \
22 apt-get install -y wget && \
23 apt-get install -y unzip && \
24 apt-get install -y curl && \
25 apt-get install -y build-essential && \
26 apt-get install -y libssl-dev && \
27 apt-get install -y libffi-dev && \
28 yes | pip install cryptography
33 # get binary zip from nexus
34 RUN wget -q -O vfc-gvnfm-vnflcm-lcm.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.gvnfm.vnflcm&a=vfc-gvnfm-vnflcm-lcm&v=LATEST&e=zip' && \
35 unzip vfc-gvnfm-vnflcm-lcm.zip && \
36 rm -rf vfc-gvnfm-vnflcm-lcm.zip
38 # get db scripts from nexus
39 RUN wget -q -O vfc-gvnfm-vnfres-res.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.gvnfm.vnfres&a=vfc-gvnfm-vnfres-res&v=LATEST&e=zip' && \
40 unzip vfc-gvnfm-vnfres-res.zip vfc/gvnfm/vnfres/res/assembly/*.* && \
41 mv ./vfc/gvnfm/vnfres/res/assembly/bin ./bin && \
42 mv ./vfc/gvnfm/vnfres/res/assembly/dbscripts ./dbscripts && \
43 rm -rf vfc-gvnfm-vnfres-res.zip
50 ENTRYPOINT vfc/gvnfm/vnflcm/lcm/docker/docker-entrypoint.sh