Fix add-apt-repository
[sdnc/oam.git] / installation / ansible-server / src / main / docker / Dockerfile
index 1f12bf2..dfbb060 100644 (file)
@@ -1,6 +1,5 @@
 # Base ubuntu with added packages needed for open ecomp
-#FROM onap/ccsdk-ubuntu-image:${ccsdk.distribution.version}
-FROM onap/ccsdk-ubuntu-image:0.2.1-SNAPSHOT
+FROM onap/ccsdk-ubuntu-image:${ccsdk.distribution.version}
 
 LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
 
@@ -16,13 +15,10 @@ RUN apt-get -y install vim
 ##Python:
 RUN apt-get -y install python2.7
 RUN apt-get -y install python-pip
-RUN pip install PyMySQL
-RUN pip install cherrypy
-RUN pip install requests
 
 ##Ansible:
 RUN apt-get -y install software-properties-common
-RUN apt-add-repository ppa:ansible/ansible
+RUN apt-add-repository -y ppa:ansible/ansible
 RUN apt-get -y install ansible
 
 # copy files needed
@@ -30,7 +26,7 @@ COPY opt /opt/
 
 WORKDIR /opt/onap/sdnc
 
-ENTRYPOINT exec python RestServer.py > RestServer.out
+ENTRYPOINT exec startAnsibleServer.sh
 #CMD ["/bin/bash"]
 EXPOSE 8000