LCM Ansible Server Docker
[sdnc/oam.git] / installation / ansible-server / src / main / docker / Dockerfile
diff --git a/installation/ansible-server/src/main/docker/Dockerfile b/installation/ansible-server/src/main/docker/Dockerfile
new file mode 100644 (file)
index 0000000..1f12bf2
--- /dev/null
@@ -0,0 +1,36 @@
+# 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
+
+LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
+
+#ENV http_proxy=http://anonymous:password@one.proxy.att.com:8080
+#ENV https_proxy=http://anonymous:password@one.proxy.att.com:8080
+
+##Vim
+RUN apt-get update
+RUN apt-get -y install apt-file
+RUN apt-file update
+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-get -y install ansible
+
+# copy files needed
+COPY opt /opt/
+
+WORKDIR /opt/onap/sdnc
+
+ENTRYPOINT exec python RestServer.py > RestServer.out
+#CMD ["/bin/bash"]
+EXPOSE 8000
+