aboutsummaryrefslogtreecommitdiffstats
path: root/installation/ansible-server/src/main/docker
diff options
context:
space:
mode:
authorRuchira Agarwal <ra1926@att.com>2018-04-24 17:30:06 +0000
committerRuchira Agarwal <ra1926@att.com>2018-04-24 17:30:06 +0000
commit03161921e2a0728d0a7e0a604b6744cbb621e337 (patch)
tree77e2e46d81d3ae415e9089022e515f22b4c42aca /installation/ansible-server/src/main/docker
parentaf57c16205ca6ae5cfd459de54f6a288d993e6db (diff)
LCM Ansible Server Docker
Add CM Ansible Server Docker Container Change-Id: I673cfd6dce5d2e96954fc6700a12a849f46dae5a Issue-ID: SDNC-288 Signed-off-by: Ruchira Agarwal <ra1926@att.com> Former-commit-id: c051fe64ed0ddd6aeb26f8b2af9adfe7011a4dc0
Diffstat (limited to 'installation/ansible-server/src/main/docker')
-rw-r--r--installation/ansible-server/src/main/docker/Dockerfile36
1 files changed, 36 insertions, 0 deletions
diff --git a/installation/ansible-server/src/main/docker/Dockerfile b/installation/ansible-server/src/main/docker/Dockerfile
new file mode 100644
index 00000000..1f12bf2a
--- /dev/null
+++ b/installation/ansible-server/src/main/docker/Dockerfile
@@ -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
+