Merge "Fix project name in pom file"
[vfc/nfvo/driver/vnfm/svnfm.git] / zte / vmanager / docker / Dockerfile
1 FROM ubuntu:14.04
2
3 ARG HTTP_PROXY=${HTTP_PROXY}
4 ARG HTTPS_PROXY=${HTTPS_PROXY}
5
6 ENV http_proxy $HTTP_PROXY
7 ENV https_proxy $HTTPS_PROXY
8
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
11
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 wget && \
19     apt-get install -y unzip && \
20     apt-get install -y curl && \
21     apt-get install -y build-essential && \
22     apt-get install -y libssl-dev && \
23     apt-get install -y libffi-dev && \
24     yes | pip install cryptography
25
26 ADD . /service
27 WORKDIR /service
28
29 # get binary zip from nexus - vfc-nfvo-driver-vnfm-svnfm-zte-vmanager
30 RUN wget -q -O vfc-nfvo-driver-vnfm-svnfm-zte-vmanager.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.nfvo.driver.vnfm.svnfm&a=
31 vfc-nfvo-driver-vnfm-svnfm-zte-vmanager&v=LATEST&e=zip' && \
32     unzip vfc-nfvo-driver-vnfm-svnfm-zte-vmanager.zip && \
33     rm -rf vfc-nfvo-driver-vnfm-svnfm-zte-vmanager.zip
34
35 EXPOSE 8410
36
37 WORKDIR /service
38 ENTRYPOINT vfc/nfvo/driver/vnfm/svnfm/zte/vmanager/docker/docker-entrypoint.sh