Fix docker file of vfc-gvnfm-vnflcm
[vfc/gvnfm/vnflcm.git] / lcm / docker / Dockerfile
index 3696eb8..7b23698 100755 (executable)
@@ -2,22 +2,33 @@ FROM ubuntu:14.04
 
 ARG HTTP_PROXY=${HTTP_PROXY}
 ARG HTTPS_PROXY=${HTTPS_PROXY}
-ARG MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
 
 ENV http_proxy $HTTP_PROXY
 ENV https_proxy $HTTPS_PROXY
-ENV MYSQL_ROOT_PASSWORD $MYSQL_ROOT_PASSWORD
+
+RUN echo "mysql-server mysql-server/root_password password root" | debconf-set-selections
+RUN echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections
 
 RUN apt-get update && \
+    apt-get install -y python-virtualenv && \
+    apt-get install -y python-setuptools && \
     apt-get install -y python-dev && \
     apt-get install -y python-pip && \
+    apt-get install -y gcc && \
     apt-get install -y libmysqlclient-dev && \
     apt-get install -y redis-server && \
     apt-get install -y mysql-server && \
-    apt-get install -y mysql-client
+    apt-get install -y mysql-client && \
+    apt-get install -y wget && \
+    apt-get install -y unzip && \
+    apt-get install -y curl && \
+    apt-get install -y build-essential && \
+    apt-get install -y libssl-dev && \
+    apt-get install -y libffi-dev && \
+    yes | pip install cryptography
 
 ADD . /service
-RUN cd /service
+WORKDIR /service
 
 # get binary zip from nexus
 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' && \
@@ -33,7 +44,7 @@ RUN wget -q -O vfc-gvnfm-vnfres-res.zip 'https://nexus.onap.org/service/local/ar
 
 EXPOSE 8801
 EXPOSE 3306
+EXPOSE 6379
 
-WORKDIR /service/vfc/gvnfm/vnflcm/
-
-CMD lcm/docker/instance_init.sh
+WORKDIR /service
+ENTRYPOINT vfc/gvnfm/vnflcm/lcm/docker/docker-entrypoint.sh