From 3b09399e52efc84705fadda1fbc95d30cc6f0a8b Mon Sep 17 00:00:00 2001 From: micafer Date: Thu, 18 Jun 2015 11:00:25 +0200 Subject: [PATCH] Add Dockerfile --- docker/Dockerfile | 11 +++++++++++ docker/ansible.cfg | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 docker/Dockerfile create mode 100644 docker/ansible.cfg diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 000000000..1f8a3c752 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,11 @@ +# Dockerfile to create a container with the IM service +FROM ubuntu:14.04.2 +MAINTAINER Miguel Caballer +LABEL version="1.3.0" +LABEL description="Container image to run the IM service. (http://www.grycap.upv.es/im)" +EXPOSE 8899 +RUN apt-get update && apt-get install -y gcc python-dev python-pip python-soappy openssh-client sshpass +RUN pip install IM +RUN pip uninstall -y SOAPpy +COPY ansible.cfg /etc/ansible/ansible.cfg +CMD im_service.py diff --git a/docker/ansible.cfg b/docker/ansible.cfg new file mode 100644 index 000000000..3cfba7837 --- /dev/null +++ b/docker/ansible.cfg @@ -0,0 +1,17 @@ +[defaults] +transport = smart +host_key_checking = False +sudo_user = root +sudo_exe = 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