-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |