From 814ec6ea979b52088c5b0cd8d86aa6dc9006adce Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Tue, 10 Apr 2018 09:55:19 +1000 Subject: [PATCH] Install ansible plugin Ansible plugin also requires ansible binary to be installed on the docker container. Include the required dependencies and also format the Dockerfile to make the dependencies readable. Change-Id: I3e9e9ce92399e766dbce0c7d068020d8a10764ab Signed-off-by: Anil Belur --- jenkins/agent/Dockerfile | 22 ++++++++++++++++------ jenkins/plugins.txt | 1 + 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/jenkins/agent/Dockerfile b/jenkins/agent/Dockerfile index 70177e9..8db4fc4 100644 --- a/jenkins/agent/Dockerfile +++ b/jenkins/agent/Dockerfile @@ -1,11 +1,21 @@ FROM jenkinsci/ssh-slave RUN DEBIAN_FRONTEND=noninteractive \ - apt-get update \ - && apt-get install --no-install-recommends -y python python-pip \ - python-tox python-dev \ - build-essential zip facter xmlstarlet \ - && apt-get clean + apt-get update && \ + apt-get install --no-install-recommends -y \ + build-essential \ + facter \ + libffi-dev \ + libssl-dev \ + python \ + python-pip \ + python-tox \ + python-dev \ + xmlstarlet \ + zip && \ + apt-get clean RUN /usr/bin/pip install --upgrade setuptools -RUN /usr/bin/pip install virtualenv +RUN /usr/bin/pip install --upgrade virtualenv +RUN /usr/bin/pip install --upgrade cryptography +RUN /usr/bin/pip install --upgrade ansible diff --git a/jenkins/plugins.txt b/jenkins/plugins.txt index b9fc5d7..985d88f 100644 --- a/jenkins/plugins.txt +++ b/jenkins/plugins.txt @@ -1,4 +1,5 @@ ace-editor:1.1 +ansible:1.0 ant:1.8 antisamy-markup-formatter:1.5 apache-httpcomponents-client-4-api:4.5.3-2.1 -- 2.16.6