# Dependencies
$ sudo pip install ansible awscli

# Copy your public key
$ cp ~/.ssh/id_rsa.pub docker/files/

# Create the docker image
$ sudo docker build -t nuxeo/jenkins-base docker

# Modify roles/slave_tools/tasks/main.yml for your needs

# Launch the container
$ sudo docker run -d -t -i -p 127.0.0.1:2222:22 --name=slave-common nuxeo/jenkins-base

# You will need AWS creditientials
$ AWS_ACCESS_KEY_ID=...
$ AWS_SECRET_ACCESS_KEY=...
$ export AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY

# Execute ansible with the new configuration file
$ ansible-playbook -i inventory/slave-common/hosts slave-common.yml -v

# Connect to the container, and youpi!
$ sudo docker exec -it slave-common /bin/bash