Skip to content

Instantly share code, notes, and snippets.

@lpicanco
Last active April 5, 2016 17:58
Show Gist options
  • Save lpicanco/3109ba564720871f05cf to your computer and use it in GitHub Desktop.
Save lpicanco/3109ba564720871f05cf to your computer and use it in GitHub Desktop.
jenkins-devops
FROM simonqbs/jenkins-dind
MAINTAINER Luiz Picanço "lpicanco@gmail.com"
ENV PACKER_VERSION 0.8.6
RUN apt-get update && apt-get install -y \
python-pip python-dev curl sshpass && \
pip install ansible==2.0 && \
pip install docker-py==1.4.0 && \
wget -q -O /packer.zip "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip" && \
unzip /packer.zip -d /bin && \
apt-get -f -y --auto-remove remove gcc python-pip python-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* && \
rm /packer.zip && \
mkdir -p /etc/ansible &&\
echo '[local]\nlocalhost\n' > /etc/ansible/hosts
VOLUME ["/etc/ansible"]%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment