LCM Ansible Server Docker
[sdnc/oam.git] / installation / ansible-server / src / main / docker / Dockerfile
1 # Base ubuntu with added packages needed for open ecomp
2 #FROM onap/ccsdk-ubuntu-image:${ccsdk.distribution.version}
3 FROM onap/ccsdk-ubuntu-image:0.2.1-SNAPSHOT
4
5 LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
6
7 #ENV http_proxy=http://anonymous:password@one.proxy.att.com:8080
8 #ENV https_proxy=http://anonymous:password@one.proxy.att.com:8080
9
10 ##Vim
11 RUN apt-get update
12 RUN apt-get -y install apt-file
13 RUN apt-file update
14 RUN apt-get -y install vim
15
16 ##Python:
17 RUN apt-get -y install python2.7
18 RUN apt-get -y install python-pip
19 RUN pip install PyMySQL
20 RUN pip install cherrypy
21 RUN pip install requests
22
23 ##Ansible:
24 RUN apt-get -y install software-properties-common
25 RUN apt-add-repository ppa:ansible/ansible
26 RUN apt-get -y install ansible
27
28 # copy files needed
29 COPY opt /opt/
30
31 WORKDIR /opt/onap/sdnc
32
33 ENTRYPOINT exec python RestServer.py > RestServer.out
34 #CMD ["/bin/bash"]
35 EXPOSE 8000
36