From c1dcbc53d841a8d27ffc276a00ba84f5f12091e8 Mon Sep 17 00:00:00 2001 From: micafer Date: Wed, 10 Feb 2016 15:25:59 +0100 Subject: [PATCH] Add removed docker-devel dir --- docker-devel/Dockerfile | 43 ++++++++++++++++++++++++++++++++++++++++ docker-devel/ansible.cfg | 17 ++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 docker-devel/Dockerfile create mode 100644 docker-devel/ansible.cfg diff --git a/docker-devel/Dockerfile b/docker-devel/Dockerfile new file mode 100644 index 000000000..2c14fcd0a --- /dev/null +++ b/docker-devel/Dockerfile @@ -0,0 +1,43 @@ +# Dockerfile to create a container with the IM service and TOSCA support +FROM ubuntu:14.04 +MAINTAINER Miguel Caballer +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 diff --git a/docker-devel/ansible.cfg b/docker-devel/ansible.cfg new file mode 100644 index 000000000..2ae9bcc53 --- /dev/null +++ b/docker-devel/ansible.cfg @@ -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