Skip to content

Commit

Permalink
Add removed docker-devel dir
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 10, 2016
1 parent 13682c8 commit c1dcbc5
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docker-devel/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Dockerfile to create a container with the IM service and TOSCA support
FROM ubuntu:14.04
MAINTAINER Miguel Caballer <[email protected]>
LABEL version="1.4.2"
LABEL description="Container image to run the IM service with TOSCA support. (http://www.grycap.upv.es/im)"

# Update and install all the neccesary packages
RUN apt-get update && apt-get install -y \
gcc \
python-dev \
python-pip \
python-soappy \
python-pbr \
python-dateutil \
python-mock \
python-nose \
openssh-client \
sshpass \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install tosca-parser
RUN cd tmp \
&& git clone --recursive https://github.com/indigo-dc/tosca-parser.git \
&& cd tosca-parser \
&& python setup.py install

# Install im indigo tosca fork branch 'devel'
RUN cd tmp \
&& git clone --branch devel --recursive https://github.com/indigo-dc/im.git \
&& cd im \
&& python setup.py install
COPY ansible.cfg /etc/ansible/ansible.cfg

# Turn on the REST services
RUN sed -i "/ACTIVATE_REST =.*/c\ACTIVATE_REST=True" /etc/im/im.cfg

# Expose the IM ports
EXPOSE 8899 8800

# Launch the service at the beginning of the container
CMD im_service.py
17 changes: 17 additions & 0 deletions docker-devel/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[defaults]
transport = smart
host_key_checking = False
become_user = root
become_method = sudo

[paramiko_connection]

record_host_keys=False

[ssh_connection]

# Only in systems with OpenSSH support to ControlPersist
ssh_args = -o ControlMaster=auto -o ControlPersist=900s
# In systems with older versions of OpenSSH (RHEL 6, CentOS 6, SLES 10 or SLES 11)
#ssh_args =
pipelining = True

0 comments on commit c1dcbc5

Please sign in to comment.